Skip to content

Commit

Permalink
Merge pull request #1556 from bartbutenaers/sidebar-add-group-missing
Browse files Browse the repository at this point in the history
Sidebar 'add group' missing
  • Loading branch information
joepavitt authored Dec 23, 2024
2 parents c450bf4 + ed9d9b2 commit 5829d5a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions nodes/config/ui_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -1200,14 +1200,15 @@
}
return false // return false to click event to prevent default
})
// add the "+ group" button
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)
groupEditButton.on('click', function (evt) {
list.editableList('addItem')
evt.preventDefault()
})
}

// add the "+ group" button
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)
groupEditButton.on('click', function (evt) {
list.editableList('addItem')
evt.preventDefault()
})

// if this is a group & it is not an unattached group, add the "_ spacer" button
if (item.type === 'ui-group' && !!item.page) {
// add the "+ spacer" button
Expand Down

0 comments on commit 5829d5a

Please sign in to comment.