mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - VPC - tier - Add VM - zone dropdown - exclude Basic zones (since VPC is not supported in Basic zone).
This commit is contained in:
parent
7e73ae8e74
commit
86bbba39cd
|
|
@ -26,7 +26,18 @@
|
|||
async: false,
|
||||
success: function(json) {
|
||||
zoneObjs = json.listzonesresponse.zone;
|
||||
args.response.success({ data: {zones: zoneObjs}});
|
||||
|
||||
var items;
|
||||
if(args.initArgs.pluginForm != null && args.initArgs.pluginForm.name == "vpcTierInstanceWizard") { //from VPC Tier chart
|
||||
items = $.grep(zoneObjs, function(zoneObj) {
|
||||
return zoneObj.networktype == 'Advanced';
|
||||
});
|
||||
}
|
||||
else { //from Instance page
|
||||
items = zoneObjs;
|
||||
}
|
||||
|
||||
args.response.success({ data: {zones: items}});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue