mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
F #5326: Enabled 'Delete' buttom in snapshot-tab when the vCenter VM is in POWEROFF
This commit is contained in:
parent
baef40e24a
commit
ee7c9fe67f
src/sunstone/public/app/tabs/vms-tab
@ -124,6 +124,10 @@ define(function(require) {
|
||||
actions += '<a href="VM.snapshot_revert" class="snapshot_revert" ><i class="fa fa-reply"/>' + Locale.tr("Revert") + '</a>  '
|
||||
}
|
||||
|
||||
if (Config.isTabActionEnabled("vms-tab", "VM.snapshot_delete")) {
|
||||
actions += '<a href="VM.snapshot_delete" class="snapshot_delete" ><i class="fa fa-times"/>' + Locale.tr("Delete") + '</a>'
|
||||
}
|
||||
} else if (that.element.STATE == OpenNebulaVM.STATES.POWEROFF && that.element.HISTORY_RECORDS.HISTORY.VM_MAD == "vcenter"){
|
||||
if (Config.isTabActionEnabled("vms-tab", "VM.snapshot_delete")) {
|
||||
actions += '<a href="VM.snapshot_delete" class="snapshot_delete" ><i class="fa fa-times"/>' + Locale.tr("Delete") + '</a>'
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ define(function(require) {
|
||||
[];
|
||||
|
||||
STATE_ACTIONS[OpenNebulaVM.STATES.POWEROFF] =
|
||||
["VM.resume", "VM.resize", "VM.attachdisk", "VM.detachdisk", "VM.attachnic", "VM.detachnic", "VM.disk_saveas", "VM.disk_snapshot_create", "VM.disk_snapshot_revert", "VM.disk_snapshot_delete", "VM.migrate", "VM.undeploy", "VM.undeploy_hard", "VM.save_as_template", "VM.updateconf", "VM.terminate_hard", "VM.recover", "VM.disk_resize"];
|
||||
["VM.resume", "VM.resize", "VM.attachdisk", "VM.detachdisk", "VM.attachnic", "VM.detachnic", "VM.disk_saveas", "VM.disk_snapshot_create", "VM.disk_snapshot_revert", "VM.disk_snapshot_delete", "VM.migrate", "VM.undeploy", "VM.undeploy_hard", "VM.save_as_template", "VM.updateconf", "VM.terminate_hard", "VM.recover", "VM.disk_resize", "VM.snapshot_delete"];
|
||||
|
||||
STATE_ACTIONS[OpenNebulaVM.STATES.UNDEPLOYED] =
|
||||
["VM.resume", "VM.resize", "VM.deploy", "VM.updateconf", "VM.terminate_hard", "VM.recover"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user