ui: allow for the VM Hostname to be edited when VM is switched off (#3412)

Allow for VM name (hostname) to be edited when VM is switched off.
This commit is contained in:
EK 2019-07-04 12:19:32 +03:00 committed by Rohit Yadav
parent f3aa147806
commit 9f18b5b620

View File

@ -1477,6 +1477,11 @@
displayName: args.data.displayname
});
}
if (args.data.name != args.context.instances[0].name) {
$.extend(data, {
name: args.data.name
});
}
$.ajax({
url: createURL('updateVirtualMachine'),
data: data,
@ -2798,7 +2803,8 @@
converter: cloudStack.converters.toLocalDate
},
name: {
label: 'label.name'
label: 'label.name',
isEditable: true
},
id: {
label: 'label.id'