mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Show more specific message when nonstandard brand has simply incomplete tags (close #6909)
This commit is contained in:
@@ -173,7 +173,15 @@ export function validationOutdatedTags(context) {
|
||||
var currEntity = context.hasEntity(entity.id);
|
||||
if (!currEntity) return '';
|
||||
|
||||
return t('issues.outdated_tags.' + prefix + 'message',
|
||||
var messageID = 'issues.outdated_tags.' + prefix + 'message';
|
||||
|
||||
if (subtype === 'noncanonical_brand' && tagDiff.every(function(d) {
|
||||
return d.type === '+';
|
||||
})) {
|
||||
messageID += '_incomplete';
|
||||
}
|
||||
|
||||
return t(messageID,
|
||||
{ feature: utilDisplayLabel(currEntity, context) }
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user