mirror of https://github.com/apache/cloudstack.git
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>
This commit is contained in:
parent
22c6b47473
commit
b68ae1949e
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue