Skip to content

Commit 9f18b5b

Browse files
kioieyadvr
authored andcommitted
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.
1 parent f3aa147 commit 9f18b5b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ui/scripts/instances.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,11 @@
14771477
displayName: args.data.displayname
14781478
});
14791479
}
1480+
if (args.data.name != args.context.instances[0].name) {
1481+
$.extend(data, {
1482+
name: args.data.name
1483+
});
1484+
}
14801485
$.ajax({
14811486
url: createURL('updateVirtualMachine'),
14821487
data: data,
@@ -2798,7 +2803,8 @@
27982803
converter: cloudStack.converters.toLocalDate
27992804
},
28002805
name: {
2801-
label: 'label.name'
2806+
label: 'label.name',
2807+
isEditable: true
28022808
},
28032809
id: {
28042810
label: 'label.id'

0 commit comments

Comments
 (0)