mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Add non-actionable fix suggestion for "Fix Me" request issues
This commit is contained in:
@@ -1520,6 +1520,8 @@ en:
|
||||
message: '{feature} should be part of a line or area based on its tags'
|
||||
reference: "Some features shouldn't be standalone points."
|
||||
fix:
|
||||
address_the_concern:
|
||||
title: Address the concern
|
||||
connect_almost_junction:
|
||||
annotation: Connected very close features.
|
||||
connect_crossing_features:
|
||||
|
||||
Vendored
+3
@@ -1893,6 +1893,9 @@
|
||||
"reference": "Some features shouldn't be standalone points."
|
||||
},
|
||||
"fix": {
|
||||
"address_the_concern": {
|
||||
"title": "Address the concern"
|
||||
},
|
||||
"connect_almost_junction": {
|
||||
"annotation": "Connected very close features."
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { t } from '../util/locale';
|
||||
import { utilDisplayLabel } from '../util';
|
||||
import { validationIssue } from '../core/validation';
|
||||
import { validationIssue, validationIssueFix } from '../core/validation';
|
||||
|
||||
|
||||
export function validationHelpRequest(context) {
|
||||
@@ -27,6 +27,11 @@ export function validationHelpRequest(context) {
|
||||
var entity = context.hasEntity(this.entityIds[0]);
|
||||
return entity ? t('issues.fixme_tag.message', { feature: utilDisplayLabel(entity, context) }) : '';
|
||||
},
|
||||
fixes: [
|
||||
new validationIssueFix({
|
||||
title: t('issues.fix.address_the_concern.title')
|
||||
})
|
||||
],
|
||||
reference: showReference,
|
||||
entityIds: [entity.id]
|
||||
})];
|
||||
|
||||
Reference in New Issue
Block a user