From 6cbf34f196e2ef37d821ad338d15e06fdb92ebee Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 17 Apr 2012 16:21:10 -0700 Subject: [PATCH] CS-13589: cloudstack 3.0 UI - volume page - when a volume is in "Migrating" state, disallow any action. --- ui/scripts/storage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index d1895462b08..164b72fb528 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -1178,7 +1178,7 @@ var jsonObj = args.context.item; var allowedActions = []; - if (jsonObj.state == 'Destroyed') { + if (jsonObj.state == 'Destroyed' || jsonObj.state == 'Migrating') { return []; } @@ -1191,7 +1191,7 @@ allowedActions.push("downloadVolume"); } } - if(jsonObj.state != "Creating" && jsonObj.state != "Corrupted" && jsonObj.name != "attaching") { + if(jsonObj.state != "Creating") { if(jsonObj.type == "ROOT") { if (jsonObj.vmstate == "Stopped") { allowedActions.push("createTemplate");