mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 17:14:04 +02:00
Revalidate immediately after running most fixes (close #6354)
Allow individual fixes to control revalidation Don't allow fixes to run within a second of running any fix for that issue
This commit is contained in:
@@ -83,13 +83,15 @@ export function validationUnsquareWay() {
|
||||
icon: 'iD-operation-orthogonalize',
|
||||
title: t('issues.fix.square_feature.title'),
|
||||
autoArgs: autoArgs,
|
||||
onClick: function() {
|
||||
onClick: function(completionHandler) {
|
||||
var entityId = this.issue.entityIds[0];
|
||||
// note: use default params for actionOrthogonalize, not relaxed epsilon
|
||||
context.perform(
|
||||
actionOrthogonalize(entityId, context.projection),
|
||||
t('operations.orthogonalize.annotation.area')
|
||||
);
|
||||
// run after the squaring transition (currently 150ms)
|
||||
window.setTimeout(function() { completionHandler(); }, 175);
|
||||
}
|
||||
}),
|
||||
new validationIssueFix({
|
||||
|
||||
Reference in New Issue
Block a user