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

Merge pull request #2125 from kazuhitoyokoi/master-fixfilenode

Fix encoding menu in file node
This commit is contained in:
Nick O'Leary 2019-04-02 16:50:14 +01:00 committed by GitHub
commit 7b15ba31ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

11
packages/node_modules/@node-red/nodes/core/storage/50-file.html vendored Normal file → Executable file
View File

@ -22,7 +22,7 @@
<input type="checkbox" id="node-input-createDir" style="display: inline-block; width: auto; vertical-align: top;"> <input type="checkbox" id="node-input-createDir" style="display: inline-block; width: auto; vertical-align: top;">
<label for="node-input-createDir" style="width: 70%;"><span data-i18n="file.label.createdir"></span></label> <label for="node-input-createDir" style="width: 70%;"><span data-i18n="file.label.createdir"></span></label>
</div> </div>
<div class="form-row"> <div class="form-row form-row-file-encoding">
<label for="node-input-encoding"><i class="fa fa-flag"></i> <span data-i18n="file.label.encoding"></span></label> <label for="node-input-encoding"><i class="fa fa-flag"></i> <span data-i18n="file.label.encoding"></span></label>
<select type="text" id="node-input-encoding" style="width: 250px;"> <select type="text" id="node-input-encoding" style="width: 250px;">
</select> </select>
@ -246,8 +246,13 @@
}); });
encSel.val(node.encoding); encSel.val(node.encoding);
$("#node-input-overwriteFile").on("change",function() { $("#node-input-overwriteFile").on("change",function() {
if (this.value === "delete") { $(".form-row-file-write-options").hide(); } if (this.value === "delete") {
else { $(".form-row-file-write-options").show(); } $(".form-row-file-write-options").hide();
$(".form-row-file-encoding").hide();
} else {
$(".form-row-file-write-options").show();
$(".form-row-file-encoding").show();
}
}); });
} }
}); });

View File

@ -859,6 +859,7 @@
"breaklines": "Break into lines", "breaklines": "Break into lines",
"filelabel": "file", "filelabel": "file",
"sendError": "Send message on error (legacy mode)", "sendError": "Send message on error (legacy mode)",
"encoding": "Encoding",
"deletelabel": "delete __file__", "deletelabel": "delete __file__",
"utf8String": "UTF8 string", "utf8String": "UTF8 string",
"binaryBuffer": "binary buffer" "binaryBuffer": "binary buffer"

View File

@ -143,7 +143,7 @@
"filterCurrent": "現在のフロー", "filterCurrent": "現在のフロー",
"debugNodes": "debugード", "debugNodes": "debugード",
"clearLog": "ログを削除", "clearLog": "ログを削除",
"filterLog": "ログのフィルタリング", "filterLog": "ログのフィルタリング",
"openWindow": "新しいウィンドウで開く" "openWindow": "新しいウィンドウで開く"
}, },
"messageMenu": { "messageMenu": {
@ -398,7 +398,7 @@
"status": "状態コード", "status": "状態コード",
"headers": "ヘッダ", "headers": "ヘッダ",
"other": "その他", "other": "その他",
"paytoqs" : "msg.payloadをクエリパラメータに追加", "paytoqs": "msg.payloadをクエリパラメータに追加",
"utf8String": "UTF8文字列", "utf8String": "UTF8文字列",
"binaryBuffer": "バイナリバッファ", "binaryBuffer": "バイナリバッファ",
"jsonObject": "JSONオブジェクト", "jsonObject": "JSONオブジェクト",
@ -857,6 +857,7 @@
"breaklines": "行へ分割", "breaklines": "行へ分割",
"filelabel": "file", "filelabel": "file",
"sendError": "エラーメッセージを送信(互換モード)", "sendError": "エラーメッセージを送信(互換モード)",
"encoding": "文字コード",
"deletelabel": "delete __file__", "deletelabel": "delete __file__",
"utf8String": "UTF8文字列", "utf8String": "UTF8文字列",
"binaryBuffer": "バイナリバッファ" "binaryBuffer": "バイナリバッファ"