mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-02 13:11:41 +02:00
More cleanup of operations and post-paste behavior
* Support move, rotate, reflect, delete post paste on multiselection * Improve text and error msgs for singular vs multi selections * Move `disabled` checks from actions to operations * Reproject center of rotation (closes #3667) * Cleanup tests
This commit is contained in:
@@ -22,14 +22,5 @@ export function actionDeleteMultiple(ids) {
|
||||
};
|
||||
|
||||
|
||||
action.disabled = function(graph) {
|
||||
for (var i = 0; i < ids.length; i++) {
|
||||
var id = ids[i],
|
||||
disabled = actions[graph.entity(id).type](id).disabled(graph);
|
||||
if (disabled) return disabled;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
return action;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user