mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3253 from node-red/clear-disabled-status
Do not show status for disabled nodes
This commit is contained in:
commit
cd23b44506
@ -175,6 +175,7 @@ RED.sidebar.info.outliner = (function() {
|
|||||||
n.d = true;
|
n.d = true;
|
||||||
}
|
}
|
||||||
n.dirty = true;
|
n.dirty = true;
|
||||||
|
n.dirtyStatus = true;
|
||||||
n.changed = true;
|
n.changed = true;
|
||||||
RED.events.emit("nodes:change",n);
|
RED.events.emit("nodes:change",n);
|
||||||
groupHistoryEvent.events.push(historyEvent);
|
groupHistoryEvent.events.push(historyEvent);
|
||||||
@ -203,6 +204,7 @@ RED.sidebar.info.outliner = (function() {
|
|||||||
n.d = true;
|
n.d = true;
|
||||||
}
|
}
|
||||||
n.dirty = true;
|
n.dirty = true;
|
||||||
|
n.dirtyStatus = true;
|
||||||
n.changed = true;
|
n.changed = true;
|
||||||
RED.events.emit("nodes:change",n);
|
RED.events.emit("nodes:change",n);
|
||||||
RED.history.push(historyEvent);
|
RED.history.push(historyEvent);
|
||||||
|
@ -3675,7 +3675,11 @@ RED.view = (function() {
|
|||||||
nodeEl = document.getElementById(d.id);
|
nodeEl = document.getElementById(d.id);
|
||||||
}
|
}
|
||||||
if (nodeEl) {
|
if (nodeEl) {
|
||||||
if (!showStatus || !d.status) {
|
// Do not show node status if:
|
||||||
|
// - global flag set
|
||||||
|
// - node has no status
|
||||||
|
// - node is disabled
|
||||||
|
if (!showStatus || !d.status || d.d === true) {
|
||||||
nodeEl.__statusGroup__.style.display = "none";
|
nodeEl.__statusGroup__.style.display = "none";
|
||||||
} else {
|
} else {
|
||||||
nodeEl.__statusGroup__.style.display = "inline";
|
nodeEl.__statusGroup__.style.display = "inline";
|
||||||
@ -5032,6 +5036,7 @@ RED.view = (function() {
|
|||||||
delete node.d;
|
delete node.d;
|
||||||
}
|
}
|
||||||
node.dirty = true;
|
node.dirty = true;
|
||||||
|
node.dirtyStatus = true;
|
||||||
node.changed = true;
|
node.changed = true;
|
||||||
RED.events.emit("nodes:change",node);
|
RED.events.emit("nodes:change",node);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user