Show better warning message if tags and incomplete rather than deprecated (close #6410)

This commit is contained in:
Quincy Morgan
2019-05-22 09:38:47 -04:00
parent aff47d8436
commit 82ab18dd8b
3 changed files with 13 additions and 4 deletions
+4 -2
View File
@@ -80,13 +80,15 @@ export function validationOutdatedTags() {
var tagDiff = utilTagDiff(oldTags, newTags);
if (!tagDiff.length) return [];
var prefix = subtype === 'incomplete_tags' ? 'incomplete.' : '';
return [new validationIssue({
type: type,
subtype: subtype,
severity: 'warning',
message: function() {
var entity = context.hasEntity(this.entityIds[0]);
return entity ? t('issues.outdated_tags.message', { feature: utilDisplayLabel(entity, context) }) : '';
return entity ? t('issues.outdated_tags.' + prefix + 'message', { feature: utilDisplayLabel(entity, context) }) : '';
},
reference: showReference,
entityIds: [entity.id],
@@ -116,7 +118,7 @@ export function validationOutdatedTags() {
enter
.append('div')
.attr('class', 'issue-reference')
.text(t('issues.outdated_tags.reference'));
.text(t('issues.outdated_tags.' + prefix + 'reference'));
enter
.append('strong')