Skip to content

Commit

Permalink
Revert "sidebar show add_group for all layout types"
Browse files Browse the repository at this point in the history
This reverts commit f5da5da.
  • Loading branch information
bartbutenaers committed Dec 22, 2024
1 parent f5da5da commit 8754f23
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions nodes/config/ui_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -1200,15 +1200,14 @@
}
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 8754f23

Please sign in to comment.