mirror of
https://github.com/nasa/openmct.git
synced 2025-04-15 23:16:46 +00:00
Simplified logic in EditableActionCapability
This commit is contained in:
parent
f96fa33d88
commit
8c837c5f81
@ -48,7 +48,7 @@ define(
|
||||
|
||||
action.getActions = function(domainObject) {
|
||||
return actionCapability.getActions(domainObject).filter(function(action){
|
||||
return DISALLOWED_ACTIONS.indexOf(action.getMetadata().key) >= 0 ? false : true;
|
||||
return DISALLOWED_ACTIONS.indexOf(action.getMetadata().key) === -1;
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user