mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Show "not visible" disabled reason over "connected to hidden" in the extract operation when both are applicable, in accordance with other operations
This commit is contained in:
@@ -57,12 +57,12 @@ export function operationExtract(context, selectedIDs) {
|
||||
|
||||
operation.disabled = function () {
|
||||
|
||||
if (selectedIDs.some(function(entityID) {
|
||||
if (_extent && _extent.area() && _extent.percentContainedIn(context.map().extent()) < 0.8) {
|
||||
return 'too_large';
|
||||
} else if (selectedIDs.some(function(entityID) {
|
||||
return context.graph().geometry(entityID) === 'vertex' && context.hasHiddenConnections(entityID);
|
||||
})) {
|
||||
return 'connected_to_hidden';
|
||||
} else if (_extent && _extent.area() && _extent.percentContainedIn(context.map().extent()) < 0.8) {
|
||||
return 'too_large';
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user