mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
Fix error in generating outdated_tags messgae
This commit is contained in:
@@ -54,7 +54,7 @@ export function validationCrossingWays(context) {
|
||||
return getFeatureTypeForTags(tags);
|
||||
}
|
||||
|
||||
// blacklist
|
||||
// discard
|
||||
var ignoredBuildings = {
|
||||
demolished: true, dismantled: true, proposed: true, razed: true
|
||||
};
|
||||
|
||||
@@ -156,10 +156,10 @@ export function validationOutdatedTags(context) {
|
||||
|
||||
let prefix = '';
|
||||
if (subtype === 'noncanonical_brand') {
|
||||
prefix = 'noncanonical_brand';
|
||||
prefix = 'noncanonical_brand.';
|
||||
} else if (subtype === 'deprecated_tags' && isOnlyAddingTags) {
|
||||
subtype = 'incomplete_tags';
|
||||
prefix = 'incomplete';
|
||||
prefix = 'incomplete.';
|
||||
}
|
||||
|
||||
// don't allow autofixing brand tags
|
||||
@@ -208,7 +208,7 @@ export function validationOutdatedTags(context) {
|
||||
const currEntity = context.hasEntity(entity.id);
|
||||
if (!currEntity) return '';
|
||||
|
||||
let messageID = `issues.outdated_tags.${prefix}.message`;
|
||||
let messageID = `issues.outdated_tags.${prefix}message`;
|
||||
if (subtype === 'noncanonical_brand' && isOnlyAddingTags) {
|
||||
messageID += '_incomplete';
|
||||
}
|
||||
@@ -224,7 +224,7 @@ export function validationOutdatedTags(context) {
|
||||
enter
|
||||
.append('div')
|
||||
.attr('class', 'issue-reference')
|
||||
.text(t(`issues.outdated_tags.${prefix}.reference`));
|
||||
.text(t(`issues.outdated_tags.${prefix}reference`));
|
||||
|
||||
enter
|
||||
.append('strong')
|
||||
|
||||
Reference in New Issue
Block a user