From 9b04de2251f7d5d921bc56e8aa3e85220044fe5d Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 4 Jan 2012 15:14:48 -0800 Subject: [PATCH] bug 12594: cloudstack 3.0 new UI - volume page - allow delete action as long as the volume is not attached to VM. --- ui/scripts/storage.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index 09dfc1aaa47..2971be90c50 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -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"); - } } } }