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

Fix order of config dialog calls to save/creds/validate

This commit is contained in:
Nick O'Leary 2016-01-29 11:55:06 +00:00
parent 72917117a9
commit a115301b04

View File

@ -951,20 +951,20 @@ RED.editor = (function() {
RED.nodes.add(editing_config_node); RED.nodes.add(editing_config_node);
} }
updateConfigNodeSelect(configProperty,configType,editing_config_node.id);
if (configTypeDef.credentials) {
updateNodeCredentials(editing_config_node,configTypeDef.credentials,"node-config-input");
}
if (configTypeDef.oneditsave) { if (configTypeDef.oneditsave) {
configTypeDef.oneditsave.call(editing_config_node); configTypeDef.oneditsave.call(editing_config_node);
} }
if (configTypeDef.credentials) {
updateNodeCredentials(editing_config_node,configTypeDef.credentials,"node-config-input");
}
validateNode(editing_config_node); validateNode(editing_config_node);
for (var i=0;i<editing_config_node.users.length;i++) { for (var i=0;i<editing_config_node.users.length;i++) {
var user = editing_config_node.users[i]; var user = editing_config_node.users[i];
validateNode(user); validateNode(user);
} }
updateConfigNodeSelect(configProperty,configType,editing_config_node.id);
RED.nodes.dirty(true); RED.nodes.dirty(true);
RED.view.redraw(true); RED.view.redraw(true);
$(this).dialog("close"); $(this).dialog("close");