From 2e57d80959845e265a31af713859a2ee549428b9 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Mon, 13 Feb 2023 14:50:07 +0900 Subject: [PATCH] add show-global-env action --- .../@node-red/editor-client/locales/ja/editor.json | 3 ++- .../node_modules/@node-red/editor-client/src/js/ui/env-var.js | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json index 4878763a6..01a5faed9 100644 --- a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json @@ -1376,6 +1376,7 @@ "copy-item-url": "要素のURLをコピー", "copy-item-edit-url": "要素の編集URLをコピー", "move-flow-to-start": "フローを先頭に移動", - "move-flow-to-end": "フローを末尾に移動" + "move-flow-to-end": "フローを末尾に移動", + "show-global-env": "大域環境変数を表示" } } diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/env-var.js b/packages/node_modules/@node-red/editor-client/src/js/ui/env-var.js index ab071a1d4..db1a8e86f 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/env-var.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/env-var.js @@ -166,6 +166,10 @@ RED.envVar = (function() { } } }); + + RED.actions.add("core:show-global-env", function() { + RED.userSettings.show('envvar'); + }); } return {