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.

This commit is contained in:
Jessica Wang 2013-10-18 11:56:07 -07:00
parent 5eb5594e8e
commit 7d303d9868
1 changed files with 2 additions and 2 deletions

View File

@ -1958,7 +1958,7 @@
}
//*** from Guest Network section ***
if ('networks' in args.context) {
if (!('vpc' in args.context)) {
if (args.context.networks[0].vpcid == null) { //Guest Network section > non-VPC network, show Acquire IP button
return true;
} else { //Guest Network section > VPC network, hide Acquire IP button
@ -1966,7 +1966,7 @@
}
}
//*** from VPC section ***
else { //'vpc' in args.context
else { //'vpc' in args.context //args.context.networks[0] has only one property => name: 'Router'
return true; //VPC section, show Acquire IP button
}
},