Merge 5d1fa490455c2b8988770cbe0340ea14064bdec2 into 2feb290ae3c6cd88c16e4c27c2006a569e0146e2

This commit is contained in:
Gauthier Dandele 2025-02-25 10:23:48 +00:00 committed by GitHub
commit 0898e68c19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View File

@ -52,6 +52,7 @@ RED.sidebar.config = (function() {
if (label) {
lockIcon = $('<span style="margin-right: 5px"><i class="fa fa-lock"/></span>').appendTo(header)
lockIcon.toggle(!!isLocked)
$('<span class="red-ui-sidebar-config-category-disabled-icon" style="margin-right: 5px"><i class="fa fa-ban"/></span>').appendTo(header)
$('<span class="red-ui-palette-node-config-label"/>').text(label).appendTo(header);
} else {
$('<span class="red-ui-palette-node-config-label" data-i18n="sidebar.config.'+name+'">').appendTo(header);
@ -271,6 +272,8 @@ RED.sidebar.config = (function() {
if (!validList[id]) {
$(this).remove();
delete categories[id];
} else if (RED.nodes.workspace(id)) {
$(this).toggleClass("red-ui-sidebar-config-category-disabled", RED.nodes.workspace(id).disabled);
}
// Remove the `changed` badge from the category header

View File

@ -14,6 +14,25 @@
* limitations under the License.
**/
.red-ui-sidebar-config-category-disabled-icon {
display: none;
}
.red-ui-sidebar-config-category-disabled {
.red-ui-sidebar-config-tray-header {
font-style: italic;
color: var(--red-ui-tab-text-color-disabled-inactive) !important;
.red-ui-sidebar-config-category-disabled-icon {
display: inline;
}
}
.red-ui-sidebar-node-config-list {
.red-ui-palette-node-config {
@extend .red-ui-palette-node-config-disabled;
}
}
}
.red-ui-sidebar-node-config {
position: relative;
background: var(--red-ui-secondary-background);