Add --safe mode flag to allow starting without flows running

This commit is contained in:
Nick O'Leary
2018-09-25 11:20:50 +01:00
parent fba339f666
commit d887ab126b
6 changed files with 41 additions and 4 deletions

View File

@@ -201,7 +201,16 @@ var RED = (function() {
id: notificationId
}
if (notificationId === "runtime-state") {
if (msg.error === "missing-types") {
if (msg.error === "safe-mode") {
options.buttons = [
{
text: RED._("common.label.close"),
click: function() {
persistentNotifications[notificationId].hideNotification();
}
}
]
} else if (msg.error === "missing-types") {
text+="<ul><li>"+msg.types.join("</li><li>")+"</li></ul>";
if (!!RED.projects.getActiveProject()) {
options.buttons = [