mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix output label in file-in node
This commit is contained in:
@@ -276,8 +276,17 @@
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
outputLabels: function(i) {
|
||||
var l = this._(((this.format === "utf8")||(this.format === "lines")) ? "file.label.utf8String" : "file.label.binaryBuffer");
|
||||
return ( l + (((this.format === "lines")||(this.format === "stream")) ? "s" : "") );
|
||||
var l;
|
||||
if (this.format === "utf8") {
|
||||
l = "file.label.utf8String";
|
||||
} else if (this.format === "lines") {
|
||||
l = "file.label.utf8String_plural";
|
||||
} else if (this.format === "stream") {
|
||||
l = "file.label.binaryBuffer_plural";
|
||||
} else {
|
||||
l = "file.label.binaryBuffer";
|
||||
}
|
||||
return this._(l);
|
||||
},
|
||||
icon: "file-in.svg",
|
||||
label: function() {
|
||||
|
Reference in New Issue
Block a user