Skip to content

Commit 7d303d9

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 5eb5594 commit 7d303d9

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
@@ -1958,15 +1958,15 @@
19581958
}
19591959

19601960
//*** from Guest Network section ***
1961-
if ('networks' in args.context) {
1961+
if (!('vpc' in args.context)) {
19621962
if (args.context.networks[0].vpcid == null) { //Guest Network section > non-VPC network, show Acquire IP button
19631963
return true;
19641964
} else { //Guest Network section > VPC network, hide Acquire IP button
19651965
return false;
19661966
}
19671967
}
19681968
//*** from VPC section ***
1969-
else { //'vpc' in args.context
1969+
else { //'vpc' in args.context //args.context.networks[0] has only one property => name: 'Router'
19701970
return true; //VPC section, show Acquire IP button
19711971
}
19721972
},

0 commit comments

Comments
 (0)