Skip to content

Commit

Permalink
sidebar strikethrough reset fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbutenaers committed Dec 3, 2024
1 parent c095fdc commit ca23b6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nodes/config/ui_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -1211,6 +1211,7 @@
const titleRow = parent.closest('.nrdb2-sb-list-header')
const btnGroup = $('<div>', { 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 = $('<a href="#" title="Hide" class="nr-db-sb-tab-visible-button editor-button editor-button-small nr-db-sb-list-header-button"><i class="fa ' + visibleIcon + '"></i></a>').appendTo(btnGroup)
visibleBtn.on('click', function (evt) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit ca23b6d

Please sign in to comment.