cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sw...@apache.org
Subject [02/13] git commit: updated refs/heads/master to 54039f9
Date Mon, 18 Jul 2016 18:12:38 GMT
ui: show resize volume button to all users

The resize volume is support on all major hypervisors (Xen, VMware, KVM).
The hypervisor key is returned by the list volumes response only for admins
but not for users or domain admin users. This removes the check, as the operation
is supported on all major hypervisors that CloudStack supports.

With this changes all users would see resize volume button in the UI.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b68ae194
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b68ae194
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b68ae194

Branch: refs/heads/master
Commit: b68ae1949e9fa5ae376a0ae7b67c3349b9e83418
Parents: 22c6b47
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Thu Jun 23 12:27:51 2016 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Thu Jun 23 12:27:51 2016 +0530

----------------------------------------------------------------------
 ui/scripts/storage.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b68ae194/ui/scripts/storage.js
----------------------------------------------------------------------
diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js
index 29cd4c1..b26e60b 100644
--- a/ui/scripts/storage.js
+++ b/ui/scripts/storage.js
@@ -2365,10 +2365,8 @@
             }
         }
 
-        if (jsonObj.hypervisor == "KVM" || jsonObj.hypervisor == "XenServer" || jsonObj.hypervisor
== "VMware") {
-            if (jsonObj.state == "Ready" || jsonObj.state == "Allocated") {
-                allowedActions.push("resize");
-            }
+        if (jsonObj.state == "Ready" || jsonObj.state == "Allocated") {
+            allowedActions.push("resize");
         }
 
         if (jsonObj.state != "Allocated") {


Mime
View raw message