Only insert divider in system menu if there are custom commands
This commit is contained in:
parent
71581c9c93
commit
d991eab87e
1 changed files with 3 additions and 1 deletions
|
|
@ -28,7 +28,9 @@ $(function() {
|
|||
action.actionSource = "core";
|
||||
actions.push(action);
|
||||
});
|
||||
actions.push({action: "divider"});
|
||||
if (response.custom && response.custom.length) {
|
||||
actions.push({action: "divider"});
|
||||
}
|
||||
}
|
||||
_.each(response.custom, function(data) {
|
||||
var action = _.extend({}, data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue