Show more specific message when nonstandard brand has simply incomplete tags (close #6909)

This commit is contained in:
Quincy Morgan
2019-10-03 15:25:18 +02:00
parent cc6852eead
commit 0dc890a9ee
3 changed files with 11 additions and 1 deletions
+9 -1
View File
@@ -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) }
);
}