From bed7b25ba8dc1801e29f1c574b7b29046a0e1e8a Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 10 May 2012 11:31:01 -0700 Subject: [PATCH] CS-14760: volume page - (1) no actions are available when volume state is Uploading. (2) only remove action is available when volume state is UploadError. --- ui/scripts/storage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index a33a764782f..fbc96a3d8fa 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -1254,9 +1254,12 @@ var jsonObj = args.context.item; var allowedActions = []; - if (jsonObj.state == 'Destroyed' || jsonObj.state == 'Migrating') { + if (jsonObj.state == 'Destroyed' || jsonObj.state == 'Migrating' || jsonObj.state == 'Uploading') { return []; } + if (jsonObj.state == 'UploadError') { + return ["remove"]; + } if(jsonObj.hypervisor != "Ovm" && jsonObj.state == "Ready") { allowedActions.push("takeSnapshot");