mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix file-in port labels for all 4 options
This commit is contained in:
parent
9955bcc339
commit
460c5a1ae3
@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-format"><i class="fa fa-sign-out"></i> <span data-i18n="file.label.outputas"></span></label>
|
<label for="node-input-format"><i class="fa fa-sign-out"></i> <span data-i18n="file.label.outputas"></span></label>
|
||||||
<select id="node-input-format">
|
<select id="node-input-format" style="width: 250px;">
|
||||||
<option value="utf8" data-i18n="file.output.utf8"></option>
|
<option value="utf8" data-i18n="file.output.utf8"></option>
|
||||||
<option value="lines" data-i18n="file.output.lines"></option>
|
<option value="lines" data-i18n="file.output.lines"></option>
|
||||||
<option value="" data-i18n="file.output.buffer"></option>
|
<option value="" data-i18n="file.output.buffer"></option>
|
||||||
@ -266,7 +266,8 @@
|
|||||||
inputs:1,
|
inputs:1,
|
||||||
outputs:1,
|
outputs:1,
|
||||||
outputLabels: function(i) {
|
outputLabels: function(i) {
|
||||||
return (this._((this.format === "utf8") ? "file.label.utf8String" : "file.label.binaryBuffer"));
|
var l = this._(((this.format === "utf8")||(this.format === "lines")) ? "file.label.utf8String" : "file.label.binaryBuffer");
|
||||||
|
return ( l + (((this.format === "lines")||(this.format === "stream")) ? "s" : "") );
|
||||||
},
|
},
|
||||||
icon: "file-in.svg",
|
icon: "file-in.svg",
|
||||||
label: function() {
|
label: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user