Only insert divider in system menu if there are custom commands

This commit is contained in:
Gina Häußge 2016-11-18 15:01:53 +01:00
parent 71581c9c93
commit d991eab87e

View file

@ -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);