Skip to content

Commit 5829d5a

Browse files
authored
Merge pull request #1556 from bartbutenaers/sidebar-add-group-missing
Sidebar 'add group' missing
2 parents c450bf4 + ed9d9b2 commit 5829d5a

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

nodes/config/ui_base.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,14 +1200,15 @@
12001200
}
12011201
return false // return false to click event to prevent default
12021202
})
1203-
// add the "+ group" button
1204-
const groupEditButton = $(`<a href="#" class="editor-button editor-button-small nr-db-sb-list-header-button" title="${c_('layout.addGroup')}"><i class="fa fa-plus"></i></a>`).appendTo(btnGroup)
1205-
groupEditButton.on('click', function (evt) {
1206-
list.editableList('addItem')
1207-
evt.preventDefault()
1208-
})
12091203
}
12101204

1205+
// add the "+ group" button
1206+
const groupEditButton = $(`<a href="#" class="editor-button editor-button-small nr-db-sb-list-header-button" title="${c_('layout.addGroup')}"><i class="fa fa-plus"></i></a>`).appendTo(btnGroup)
1207+
groupEditButton.on('click', function (evt) {
1208+
list.editableList('addItem')
1209+
evt.preventDefault()
1210+
})
1211+
12111212
// if this is a group & it is not an unattached group, add the "_ spacer" button
12121213
if (item.type === 'ui-group' && !!item.page) {
12131214
// add the "+ spacer" button

0 commit comments

Comments
 (0)