From dbc3978d71bb24feccbb18bfb1f0597531206a22 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Fri, 3 May 2019 12:15:26 -0700 Subject: [PATCH] Add non-actionable fix recommendation to move very close points apart --- data/core.yaml | 2 ++ dist/locales/en.json | 3 +++ modules/validations/close_nodes.js | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/data/core.yaml b/data/core.yaml index e09743918..097c5037d 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -1464,6 +1464,8 @@ en: title: Ignore this issue merge_points: title: Merge these points + move_points_apart: + title: Move these points apart move_tags: title: Move the tags annotation: Moved tags. diff --git a/dist/locales/en.json b/dist/locales/en.json index ea9245d00..f20a0269a 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -1820,6 +1820,9 @@ "merge_points": { "title": "Merge these points" }, + "move_points_apart": { + "title": "Move these points apart" + }, "move_tags": { "title": "Move the tags", "annotation": "Moved tags." diff --git a/modules/validations/close_nodes.js b/modules/validations/close_nodes.js index cc3023b16..756ddd92f 100644 --- a/modules/validations/close_nodes.js +++ b/modules/validations/close_nodes.js @@ -86,6 +86,10 @@ export function validationCloseNodes() { operation = operationMerge([entityIds[0], entityIds[1]], context); operation(); } + }), + new validationIssueFix({ + icon: 'iD-operation-disconnect', + title: t('issues.fix.move_points_apart.title') }) ] });