mirror of https://github.com/apache/cloudstack.git
CS-14907 :Download volume option should not be present for volume which has been uploaded
This commit is contained in:
parent
d46a4d53fc
commit
278515a59f
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue