From e30df544dbdf997d46f856b822130b807f30e79f Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Sat, 25 Feb 2023 23:00:07 +0900 Subject: [PATCH] Change default file name to flows.json in project feature --- .../@node-red/editor-client/src/js/ui/projects/projects.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projects.js b/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projects.js index c198b34db..f32e14c33 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projects.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projects.js @@ -747,14 +747,14 @@ RED.projects = (function() { var row = $('
').appendTo(body); $('').appendTo(row); var subrow = $('
').appendTo(row); - var defaultFlowFile = (createProjectOptions.files &&createProjectOptions.files.flow) || (RED.settings.files && RED.settings.files.flow)||"flow.json"; + var defaultFlowFile = (createProjectOptions.files &&createProjectOptions.files.flow) || (RED.settings.files && RED.settings.files.flow) || "flows.json"; projectFlowFileInput = $('').val(defaultFlowFile) .on("change keyup paste",validateForm) .appendTo(subrow); $('
').appendTo(subrow); $('').appendTo(row); - var defaultCredentialsFile = (createProjectOptions.files &&createProjectOptions.files.credentials) || (RED.settings.files && RED.settings.files.credentials)||"flow_cred.json"; + var defaultCredentialsFile = (createProjectOptions.files &&createProjectOptions.files.credentials) || (RED.settings.files && RED.settings.files.credentials) || "flows_cred.json"; row = $('
').appendTo(body); $('').appendTo(row); subrow = $('
').appendTo(row); @@ -1257,7 +1257,7 @@ RED.projects = (function() { row = $('
').appendTo(container); $('').appendTo(row); subrow = $('
').appendTo(row); - projectFlowFileInput = $('').val("flow.json") + projectFlowFileInput = $('').val("flows.json") .on("change keyup paste",validateForm) .appendTo(subrow); $('
').appendTo(subrow);