mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 15:18:12 +00:00
Simplified logic in EditableActionCapability
This commit is contained in:
@ -48,7 +48,7 @@ define(
|
|||||||
|
|
||||||
action.getActions = function(domainObject) {
|
action.getActions = function(domainObject) {
|
||||||
return actionCapability.getActions(domainObject).filter(function(action){
|
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;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user