From ca23b6ddef414b993c7c0064fff071afad764d78 Mon Sep 17 00:00:00 2001 From: bartbutenaers Date: Tue, 3 Dec 2024 20:58:59 +0100 Subject: [PATCH 1/2] sidebar strikethrough reset fix --- nodes/config/ui_base.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodes/config/ui_base.html b/nodes/config/ui_base.html index fbb039a0..c067ddee 100644 --- a/nodes/config/ui_base.html +++ b/nodes/config/ui_base.html @@ -1211,6 +1211,7 @@ const titleRow = parent.closest('.nrdb2-sb-list-header') const btnGroup = $('
', { class: 'nrdb2-sb-list-header-state-options', id: item.id }).appendTo(parent) if (nodes.includes(item.type)) { + debugger const visibleIcon = (item.visible === 'false' || item.visible === false) ? 'fa-eye-slash' : 'fa-eye' const visibleBtn = $('').appendTo(btnGroup) visibleBtn.on('click', function (evt) { @@ -1297,7 +1298,7 @@ } function setStateClasses (item, row) { - if (!item.node.visible === 'true' || item.node.visible === false) { + if (item.node.visible === 'false' || item.node.visible === false) { row.addClass('nrdb2-sb-item-hidden') } if (item.node.disabled === 'true' || item.node.disabled === true) { From 5cdc33900665dae9f5cd4522b3c17c16a623d276 Mon Sep 17 00:00:00 2001 From: bartbutenaers Date: Tue, 3 Dec 2024 21:33:25 +0100 Subject: [PATCH 2/2] remove debugger --- nodes/config/ui_base.html | 1 - 1 file changed, 1 deletion(-) diff --git a/nodes/config/ui_base.html b/nodes/config/ui_base.html index c067ddee..79e5f3fd 100644 --- a/nodes/config/ui_base.html +++ b/nodes/config/ui_base.html @@ -1211,7 +1211,6 @@ const titleRow = parent.closest('.nrdb2-sb-list-header') const btnGroup = $('
', { class: 'nrdb2-sb-list-header-state-options', id: item.id }).appendTo(parent) if (nodes.includes(item.type)) { - debugger const visibleIcon = (item.visible === 'false' || item.visible === false) ? 'fa-eye-slash' : 'fa-eye' const visibleBtn = $('').appendTo(btnGroup) visibleBtn.on('click', function (evt) {