Refactor: Drop isActionName and convert getCustomActions to
`filterActions`.
This commit is contained in:
@@ -99,6 +99,10 @@ const isForSubtype = (
|
||||
return false;
|
||||
};
|
||||
|
||||
export const isSubtypeAction: ActionPredicateFn = function (action) {
|
||||
return isSubtypeActionName(action.name) && !isSubtypeName(action.name);
|
||||
};
|
||||
|
||||
export const subtypeActionPredicate: ActionPredicateFn = function (
|
||||
action,
|
||||
elements,
|
||||
|
||||
Reference in New Issue
Block a user