From bdc1da70c16fcf5726478c0a35c108bc9a014667 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sat, 9 Feb 2019 21:20:20 +0000 Subject: [PATCH] Change subflow edit dialog titles --- .../@node-red/editor-client/locales/en-US/editor.json | 5 +++-- .../node_modules/@node-red/editor-client/src/js/ui/editor.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json index 644fbbc6f..4d3ac6fcc 100755 --- a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json @@ -266,8 +266,9 @@ "newVersionError": "New Version doesn't contain valid JSON:" }, "subflow": { - "editSubflow": "Edit flow template: __name__", - "edit": "Edit flow template", + "editSubflowInstance": "Edit subflow instance: __name__", + "editSubflow": "Edit subflow template: __name__", + "edit": "Edit subflow template", "subflowInstances": "There is __count__ instance of this subflow template", "subflowInstances_plural": "There are __count__ instances of this subflow template", "editSubflowProperties": "edit properties", diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js index 8f128c601..c0c460d48 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js @@ -517,7 +517,7 @@ RED.editor = (function() { label = RED._("subflow.editSubflow",{name:node.name}) } else if (node.type.indexOf("subflow:")===0) { var subflow = RED.nodes.subflow(node.type.substring(8)); - label = RED._("subflow.editSubflow",{name:subflow.name}) + label = RED._("subflow.editSubflowInstance",{name:subflow.name}) } else { if (typeof node._def.paletteLabel !== "undefined") { try {