forked from extern/egroupware
Fix toolbar actions with no group were missing
This commit is contained in:
parent
3750711cdf
commit
b27387009d
@ -223,6 +223,9 @@ var et2_toolbar = /** @class */ (function (_super) {
|
||||
var action = actions[name_1];
|
||||
if (typeof action == 'string')
|
||||
action = { id: name_1, caption: action };
|
||||
if (typeof action.group == 'undefined') {
|
||||
action.group = 'default';
|
||||
}
|
||||
// Add in divider
|
||||
if (last_group_id != action.group) {
|
||||
last_group = jQuery('[data-group="' + action.group + '"]', this_1.actionlist);
|
||||
|
@ -276,6 +276,10 @@ class et2_toolbar extends et2_DOMWidget implements et2_IInput
|
||||
{
|
||||
let action = actions[name];
|
||||
if (typeof action == 'string') action = {id: name, caption: action};
|
||||
if(typeof action.group == 'undefined')
|
||||
{
|
||||
action.group = 'default';
|
||||
}
|
||||
|
||||
// Add in divider
|
||||
if(last_group_id != action.group)
|
||||
|
Loading…
Reference in New Issue
Block a user