[Common UI] Fill in spec for RemoveAction
Fill in spec for the Remove action, included as part of the bundle platform/commonUI/edit. WTD-574.
This commit is contained in:
@@ -77,13 +77,13 @@ define(
|
||||
}
|
||||
|
||||
// Object needs to have a parent for Remove to be applicable
|
||||
/*RemoveAction.appliesTo = function (context) {
|
||||
var object = context.domainObject,
|
||||
RemoveAction.appliesTo = function (context) {
|
||||
var object = (context || {}).domainObject,
|
||||
contextCapability = object && object.getCapability("context"),
|
||||
parent = contextCapability && contextCapability.getParent();
|
||||
return parent !== undefined &&
|
||||
Array.isArray(parent.getModel().composition);
|
||||
};*/
|
||||
};
|
||||
|
||||
return RemoveAction;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user