mirror of https://github.com/apache/cloudstack.git
bug 12594: cloudstack 3.0 new UI - volume page - allow delete action as long as the volume is not attached to VM.
This commit is contained in:
parent
0538872003
commit
9b04de2251
|
|
@ -1495,12 +1495,10 @@
|
|||
}
|
||||
}
|
||||
else { // Disk not attached
|
||||
allowedActions.push("destroy");
|
||||
allowedActions.push("migrateToAnotherStorage");
|
||||
if (jsonObj.storagetype == "shared") {
|
||||
allowedActions.push("attachDisk");
|
||||
if(jsonObj.vmname == null || jsonObj.vmname == "none") {
|
||||
allowedActions.push("destroy");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue