mirror of https://github.com/apache/cloudstack.git
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.
This commit is contained in:
parent
5d27f2c886
commit
bed7b25ba8
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue