mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
f3aa147806
commit
9f18b5b620
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user