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

Fix language handling in subflow node

This commit is contained in:
Kazuhito Yokoi 2019-10-15 16:50:16 +09:00
parent e94634544c
commit 56c41374bf

View File

@ -806,12 +806,12 @@ RED.subflow = (function() {
locales.val(currentLocale);
locales.on("change", function() {
currentLocale = $(this).val();
var locale = $(this).val();
var items = $("#node-input-env-container").editableList("items");
items.each(function (i, item) {
var entry = $(this).data('data');
var labelField = entry.ui.labelField;
labelField.val(lookupLabel(entry.ui.label, "", currentLocale));
labelField.val(lookupLabel(entry.ui.label, "", locale));
if (labelField.timeout) {
clearTimeout(labelField.timeout);
delete labelField.timeout;