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:
Quincy Morgan
2020-06-05 13:12:51 -04:00
parent fac0eea761
commit 790f90c11d
+3 -3
View File
@@ -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;