mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - VPC - tier - add VM - fix a bug that nothing was shown in select network step.
This commit is contained in:
parent
39b06a6393
commit
359e9eb5d7
|
|
@ -237,7 +237,7 @@
|
|||
step5ContainerType = 'nothing-to-select';
|
||||
$networkStep.find("#from_instance_page_1").hide();
|
||||
$networkStep.find("#from_instance_page_2").hide();
|
||||
$networkStep.find("#from_vpc_tier").text("tier " + args.context.tiers[0].name);
|
||||
$networkStep.find("#from_vpc_tier").text("tier " + args.context.networks[0].name);
|
||||
$networkStep.find("#from_vpc_tier").show();
|
||||
}
|
||||
else { //from Instance page
|
||||
|
|
@ -477,8 +477,8 @@
|
|||
array1.push("&securitygroupids=" + checkedSecurityGroupIdArray.join(","));
|
||||
}
|
||||
else if (step5ContainerType == 'nothing-to-select') {
|
||||
if(args.context.tiers != null) //from VPC tier
|
||||
array1.push("&networkIds=" + args.context.tiers[0].id);
|
||||
if(args.context.networks != null) //from VPC tier
|
||||
array1.push("&networkIds=" + args.context.networks[0].id);
|
||||
}
|
||||
|
||||
var displayname = args.data.displayname;
|
||||
|
|
|
|||
Loading…
Reference in New Issue