mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4428: UI > volume page > when hypervisor is KVM and kvm.snapshot.enabled is false, still show Take Snapshot on a detached volume.
This commit is contained in:
parent
9f8f74c4ed
commit
5d41d79802
|
|
@ -1900,7 +1900,7 @@
|
|||
allowedActions.push("takeSnapshot");
|
||||
allowedActions.push("recurringSnapshot");
|
||||
} else {
|
||||
if(jsonObj.vmstate == 'Stopped') {
|
||||
if(jsonObj.vmstate == 'Stopped' || jsonObj.virtualmachineid == undefined) { //volume of stopped VM, or detached volume
|
||||
allowedActions.push("takeSnapshot");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue