bug 13466: volume page - only show "take snapshot/recurring snapshot" action when volume state is Ready. Hide them otherwise.

This commit is contained in:
Jessica Wang 2012-02-06 18:29:27 -08:00
parent 93a67de978
commit 6d96648b10

View File

@ -1149,7 +1149,7 @@
return [];
}
if(jsonObj.hypervisor != "Ovm") {
if(jsonObj.hypervisor != "Ovm" && jsonObj.state == "Ready") {
allowedActions.push("takeSnapshot");
allowedActions.push("recurringSnapshot");
}