Skip to content

Commit ebd4b8f

Browse files
author
Jessica Wang
committed
cloudstack UI: IP Addresses page > change logic of hiding/showing Acquire New IP button since args.context does contain networks property even it's from VPC section.
1 parent a99694b commit ebd4b8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ui/scripts/network.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,15 +1952,15 @@
19521952
}
19531953

19541954
//*** from Guest Network section ***
1955-
if ('networks' in args.context) {
1955+
if (!('vpc' in args.context)) {
19561956
if (args.context.networks[0].vpcid == null) { //Guest Network section > non-VPC network, show Acquire IP button
19571957
return true;
19581958
} else { //Guest Network section > VPC network, hide Acquire IP button
19591959
return false;
19601960
}
19611961
}
19621962
//*** from VPC section ***
1963-
else { //'vpc' in args.context
1963+
else { //'vpc' in args.context //args.context.networks[0] has only one property => name: 'Router'
19641964
return true; //VPC section, show Acquire IP button
19651965
}
19661966
},

0 commit comments

Comments
 (0)