Merge "Fix for node's role discarded to Unallocated if change node name on Add node page"
This commit is contained in:
commit
0c88805f28
@ -972,7 +972,7 @@ function(utils, models, commonViews, dialogViews, nodesManagementPanelTemplate,
|
||||
var name = $.trim(this.$('.name input').val());
|
||||
if (name && name != this.node.get('name')) {
|
||||
this.$('.name input').attr('disabled', true);
|
||||
this.node.save({name: name}, {patch: true, wait: true}).always(_.bind(this.endNodeRenaming, this));
|
||||
this.screen.nodes.get(this.node.id).save({name: name}, {patch: true, wait: true}).always(_.bind(this.endNodeRenaming, this));
|
||||
} else {
|
||||
this.endNodeRenaming();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user