Skip to content

Commit

Permalink
General enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdelalonde committed Apr 27, 2021
1 parent 5d16b9b commit 89178cf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/controllers/customactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,15 @@ module.exports.getMatching = api => {
// We only keep valid custom actions
const finalCustomActions = customActionsFilteredByTarget.filter(sa => sa.passFilter === true);

// If there is both the native delete action and other custom actions, add a separator
if (actionsList.length && finalCustomActions.length) {
actionsList.unshift({ type: 'separator' });
}

res.json({
list: [
...actionsList,
...finalCustomActions
...finalCustomActions,
...actionsList
]
});
};
Expand Down

0 comments on commit 89178cf

Please sign in to comment.