Skip to content

Commit

Permalink
Layout does not edit the ui-spacer node with editConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
GogoVega committed Jan 9, 2025
1 parent 6e66c17 commit 58406e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodes/config/ui_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,9 @@
* @param {Object} list - The editableList instance associated with this item
*/
function addRowActions (parent, item, list) {
const configNodes = ['ui-base', 'ui-page', 'ui-link', 'ui-group', 'ui-theme']
const configNodes = ['ui-base', 'ui-page', 'ui-link', 'ui-group', 'ui-theme', 'ui-spacer']
const btnGroup = $('<div>', { class: 'nrdb2-sb-list-header-button-group', id: item.id }).appendTo(parent)
if (!configNodes.includes(item.type) && item.type !== 'ui-spacer') {
if (!configNodes.includes(item.type)) {
const focusButton = $(`<a href="#" class="nr-db-sb-tab-focus-button editor-button editor-button-small nr-db-sb-list-header-button" title="${c_('layout.focus')}"><i class="fa fa-bullseye"></i></a>`).appendTo(btnGroup)
focusButton.on('click', function (evt) {
RED.view.reveal(item.id)
Expand Down

0 comments on commit 58406e9

Please sign in to comment.