From bd3a8db438365ba72b47dbba3abacbe5eaa351e6 Mon Sep 17 00:00:00 2001 From: Sam Machin Date: Wed, 16 Jun 2021 10:10:31 +0100 Subject: [PATCH 1/2] log readOnly on startup --- packages/node_modules/@node-red/runtime/lib/index.js | 3 +++ .../node_modules/@node-red/runtime/locales/en-US/runtime.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/runtime/lib/index.js b/packages/node_modules/@node-red/runtime/lib/index.js index e76db4c04..ab0648121 100644 --- a/packages/node_modules/@node-red/runtime/lib/index.js +++ b/packages/node_modules/@node-red/runtime/lib/index.js @@ -202,6 +202,9 @@ function start() { if (settings.settingsFile) { log.info(log._("runtime.paths.settings",{path:settings.settingsFile})); } + if (settings.readOnly){ + log.info(log._("settings.readonly-mode")) + } if (settings.httpStatic) { log.info(log._("runtime.paths.httpStatic",{path:path.resolve(settings.httpStatic)})); } diff --git a/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json b/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json index 1a29f32b4..a923f01cf 100644 --- a/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json +++ b/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json @@ -87,7 +87,8 @@ "settings": { "user-not-available": "Cannot save user settings: __message__", "not-available": "Settings not available", - "property-read-only": "Property '__prop__' is read-only" + "property-read-only": "Property '__prop__' is read-only", + "readonly-mode" : "Settings readOnly is true" }, "library": { "unknownLibrary": "Unknown library: __library__", From 672636313c1e089815b48ac87586f360ed951d48 Mon Sep 17 00:00:00 2001 From: Sam Machin Date: Wed, 16 Jun 2021 17:13:52 +0100 Subject: [PATCH 2/2] Update packages/node_modules/@node-red/runtime/locales/en-US/runtime.json Co-authored-by: Nick O'Leary --- .../node_modules/@node-red/runtime/locales/en-US/runtime.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json b/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json index a923f01cf..ede7e127f 100644 --- a/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json +++ b/packages/node_modules/@node-red/runtime/locales/en-US/runtime.json @@ -88,7 +88,7 @@ "user-not-available": "Cannot save user settings: __message__", "not-available": "Settings not available", "property-read-only": "Property '__prop__' is read-only", - "readonly-mode" : "Settings readOnly is true" + "readonly-mode" : "Runtime in read-only mode. Changes will not be saved." }, "library": { "unknownLibrary": "Unknown library: __library__",