From bae6bfc32d66bcafff10f8381a92882f52ea2f69 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Thu, 20 May 2021 21:12:32 +0100 Subject: [PATCH 1/9] Add inject values without deploy feature --- .../@node-red/editor-client/src/js/ui/tray.js | 8 +- .../nodes/core/common/20-inject.html | 358 ++++++++++++------ .../@node-red/nodes/core/common/20-inject.js | 14 +- 3 files changed, 264 insertions(+), 116 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tray.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tray.js index 2e7cd8f03..b7e2325c5 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/tray.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tray.js @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. **/ -RED.tray = (function() { + RED.tray = (function() { var stack = []; var editorStack; @@ -288,9 +288,9 @@ RED.tray = (function() { right: -(tray.tray.width()+10)+"px" }); setTimeout(function() { - if (tray.options.close) { - tray.options.close(); - } + try { + if (tray.options.close) { tray.options.close(); } + } catch (ex) { } tray.tray.remove(); if (stack.length > 0) { var oldTray = stack[stack.length-1]; diff --git a/packages/node_modules/@node-red/nodes/core/common/20-inject.html b/packages/node_modules/@node-red/nodes/core/common/20-inject.html index 9bf91ad1e..c3136ef61 100644 --- a/packages/node_modules/@node-red/nodes/core/common/20-inject.html +++ b/packages/node_modules/@node-red/nodes/core/common/20-inject.html @@ -149,6 +149,101 @@