CS-14907 :Download volume option should not be present for volume which has been uploaded

This commit is contained in:
Pranav Saxena 2012-05-16 02:18:42 +05:30
parent d46a4d53fc
commit 278515a59f
1 changed files with 1 additions and 1 deletions

View File

@ -1306,7 +1306,7 @@
allowedActions.push("recurringSnapshot");
}
if(jsonObj.state != "Allocated") {
if(jsonObj.vmstate == "Stopped" || jsonObj.virtualmachineid == null) {
if((jsonObj.vmstate == "Stopped" || jsonObj.virtualmachineid == null) && jsonObj.state !="Ready") {
allowedActions.push("downloadVolume");
}
}