You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2013/11/12 20:52:59 UTC
git commit: updated refs/heads/4.3 to 3972e39
Updated Branches:
refs/heads/4.3 8c6111736 -> 3972e3912
CLOUDSTACK-4428: UI > volume page > when hypervisor is KVM and kvm.snapshot.enabled is false, still show Take Snapshot on a detached volume.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3972e391
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3972e391
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3972e391
Branch: refs/heads/4.3
Commit: 3972e39129a947934d191b4bb72d5ed5207e8f8f
Parents: 8c61117
Author: Jessica Wang <je...@apache.org>
Authored: Tue Nov 12 11:33:39 2013 -0800
Committer: Jessica Wang <je...@apache.org>
Committed: Tue Nov 12 11:52:46 2013 -0800
----------------------------------------------------------------------
ui/scripts/storage.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3972e391/ui/scripts/storage.js
----------------------------------------------------------------------
diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js
index 314621e..22330e8 100644
--- a/ui/scripts/storage.js
+++ b/ui/scripts/storage.js
@@ -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");
}
}