From ed9d9b2d9ce46f9614f426a6bd1cb59644c512d9 Mon Sep 17 00:00:00 2001 From: bartbutenaers Date: Sun, 22 Dec 2024 11:18:24 +0100 Subject: [PATCH] Sidebar 'add group' missing --- nodes/config/ui_base.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/nodes/config/ui_base.html b/nodes/config/ui_base.html index 1269d0ce..f268813c 100644 --- a/nodes/config/ui_base.html +++ b/nodes/config/ui_base.html @@ -1200,14 +1200,15 @@ } 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