Use actionMergeNodes instead of operationMerge for the very close nodes issue fix (close #6343)

This commit is contained in:
Quincy Morgan
2019-05-10 09:12:11 -04:00
parent ad744a75ef
commit 8de10def2a
3 changed files with 8 additions and 3 deletions

View File

@@ -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:

View File

@@ -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"
},

View File

@@ -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({