mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-541: cloudstack UI - Network menu - Guest Network section - network detailPanel - show "View IP Addresses" icon regardless of having SourceNAT service or not.
This commit is contained in:
parent
7f40eef920
commit
08bd175d56
|
|
@ -605,19 +605,7 @@
|
|||
if (args.context.networks[0].state == 'Destroyed')
|
||||
return false;
|
||||
|
||||
var services = args.context.networks[0].service;
|
||||
if(services == null)
|
||||
return false;
|
||||
|
||||
// IP addresses supported for both isolated and shared networks w/ source NAT enabled
|
||||
for(var i=0; i < services.length; i++) {
|
||||
var service = services[i];
|
||||
if(service.name == "SourceNat") {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue