From 8754f23dd5d31a1ff7eaa114bc4d1eb5a5f73e92 Mon Sep 17 00:00:00 2001 From: bartbutenaers Date: Sun, 22 Dec 2024 09:10:54 +0100 Subject: [PATCH] Revert "sidebar show add_group for all layout types" This reverts commit f5da5da25ada9a957c7fff0d9868edb06f9597f9. --- nodes/config/ui_base.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/nodes/config/ui_base.html b/nodes/config/ui_base.html index f268813c..1269d0ce 100644 --- a/nodes/config/ui_base.html +++ b/nodes/config/ui_base.html @@ -1200,15 +1200,14 @@ } return false // return false to click event to prevent default }) + // add the "+ group" button + const groupEditButton = $(``).appendTo(btnGroup) + groupEditButton.on('click', function (evt) { + list.editableList('addItem') + evt.preventDefault() + }) } - // add the "+ group" button - const groupEditButton = $(``).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