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:
Jessica Wang 2012-01-04 15:14:48 -08:00
parent 0538872003
commit 9b04de2251
1 changed files with 1 additions and 3 deletions

View File

@ -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");
}
}
}
}