From b68ae1949e9fa5ae376a0ae7b67c3349b9e83418 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Thu, 23 Jun 2016 12:27:51 +0530 Subject: [PATCH] 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 --- ui/scripts/storage.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index 29cd4c1cdc3..b26e60ba36e 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") {