mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure runtime event notification gets cleared on restart
This commit is contained in:
parent
8d21e441a0
commit
c720d78c39
@ -33,7 +33,7 @@ function handleStatus(event) {
|
||||
publish("status/"+event.id,event.status,true);
|
||||
}
|
||||
function handleRuntimeEvent(event) {
|
||||
publish("notification/"+event.id,event,event.hasOwnProperty('text'));
|
||||
publish("notification/"+event.id,event,true);
|
||||
}
|
||||
function init(_server,runtime) {
|
||||
server = _server;
|
||||
|
@ -289,6 +289,8 @@ function start(type,diff,muteLog) {
|
||||
}
|
||||
}
|
||||
events.emit("nodes-started");
|
||||
events.emit("runtime-event",{id:"runtime-state"});
|
||||
|
||||
if (!muteLog) {
|
||||
if (diff) {
|
||||
log.info(log._("nodes.flows.started-modified-"+type));
|
||||
|
Loading…
Reference in New Issue
Block a user