1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Default to msg.filename as per v2 condition

This commit is contained in:
Steve-Mcl 2022-04-27 20:44:41 +01:00
parent 59e513f130
commit f63da0c58b

View File

@ -198,8 +198,8 @@
category: 'storage',
defaults: {
name: {value:""},
filename: {value:""},
filenameType: {value:""},
filename: {value:"filename"},
filenameType: {value:"msg"},
appendNewline: {value:true},
createDir: {value:false},
overwriteFile: {value:"false"},
@ -236,7 +236,7 @@
label: node._("file.encoding.setbymsg")
}).text(label).appendTo(encSel);
$("#node-input-filename").typedInput({
default: "str",
default: "msg",
types:[{ value: "str", label:"", icon:"red/images/typedInput/az.svg"}, "msg", "jsonata", "env"],
typeField: $("#node-input-filenameType")
});
@ -297,8 +297,8 @@
category: 'storage',
defaults: {
name: {value:""},
filename: {value:""},
filenameType: {value:""},
filename: {value:"filename"},
filenameType: {value:"msg"},
format: {value:"utf8"},
chunk: {value:false},
sendError: {value: false},
@ -341,7 +341,7 @@
label: label
}).text(label).appendTo(encSel);
$("#node-input-filename").typedInput({
default: "str",
default: "msg",
types:[{ value: "str", label:"", icon:"red/images/typedInput/az.svg"}, "msg", "jsonata", "env"],
typeField: $("#node-input-filenameType")
});