mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Use actionMergeNodes instead of operationMerge for the very close nodes issue fix (close #6343)
This commit is contained in:
@@ -1469,6 +1469,8 @@ en:
|
||||
title: Delete this feature
|
||||
ignore_issue:
|
||||
title: Ignore this issue
|
||||
merge_close_vertices:
|
||||
annotation: Merged very close points in a way.
|
||||
merge_points:
|
||||
title: Merge these points
|
||||
move_points_apart:
|
||||
|
||||
3
dist/locales/en.json
vendored
3
dist/locales/en.json
vendored
@@ -1826,6 +1826,9 @@
|
||||
"ignore_issue": {
|
||||
"title": "Ignore this issue"
|
||||
},
|
||||
"merge_close_vertices": {
|
||||
"annotation": "Merged very close points in a way."
|
||||
},
|
||||
"merge_points": {
|
||||
"title": "Merge these points"
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { operationMerge } from '../operations/index';
|
||||
import { actionMergeNodes } from '../actions/merge_nodes';
|
||||
import { utilDisplayLabel } from '../util';
|
||||
import { t } from '../util/locale';
|
||||
import { validationIssue, validationIssueFix } from '../core/validation';
|
||||
@@ -105,8 +105,8 @@ export function validationCloseNodes() {
|
||||
title: t('issues.fix.merge_points.title'),
|
||||
onClick: function() {
|
||||
var entityIds = this.issue.entityIds;
|
||||
var operation = operationMerge([entityIds[1], entityIds[2]], context);
|
||||
operation();
|
||||
var action = actionMergeNodes([entityIds[1], entityIds[2]]);
|
||||
context.perform(action, t('issues.fix.merge_close_vertices.annotation'));
|
||||
}
|
||||
}),
|
||||
new validationIssueFix({
|
||||
|
||||
Reference in New Issue
Block a user