From 6d96648b101f5b6702d9b2b415e689ff2ad95092 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 6 Feb 2012 18:29:27 -0800 Subject: [PATCH] bug 13466: volume page - only show "take snapshot/recurring snapshot" action when volume state is Ready. Hide them otherwise. --- ui/scripts/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index 0c66fbd6e6d..1a82f729b78 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -1149,7 +1149,7 @@ return []; } - if(jsonObj.hypervisor != "Ovm") { + if(jsonObj.hypervisor != "Ovm" && jsonObj.state == "Ready") { allowedActions.push("takeSnapshot"); allowedActions.push("recurringSnapshot"); }