ing
This commit is contained in:
parent
c96e0382c8
commit
b87c3a68d2
|
@ -252,16 +252,16 @@ export class HomePageComponent implements OnInit, OnDestroy {
|
|||
|
||||
switch (node.group) {
|
||||
case 'zone':
|
||||
var zone: Zone = node.target;
|
||||
const zone: Zone = node.target;
|
||||
zone.hostList = [];
|
||||
this.hosts.forEach(host => {
|
||||
if (host.zone.network === zone.network) {
|
||||
zone.hostList.push(host);
|
||||
this.hosts.forEach(_host => {
|
||||
if (_host.zone.network === zone.network) {
|
||||
zone.hostList.push(_host);
|
||||
}
|
||||
});
|
||||
break;
|
||||
case 'host':
|
||||
var host: Host = node.target;
|
||||
const host: Host = node.target;
|
||||
host.portList = [];
|
||||
this.ports.forEach(port => {
|
||||
if (port.host.address === host.address) {
|
||||
|
@ -332,7 +332,7 @@ export class HomePageComponent implements OnInit, OnDestroy {
|
|||
@RPCSubscriber({ method: 'DiscoveryService.DiscoveredHost' })
|
||||
public DiscoveredHost(host: Host) {
|
||||
console.log('DiscoveredHost', host);
|
||||
var dup = false;
|
||||
let dup = false;
|
||||
this.hosts.forEach((item) => {
|
||||
if (item.address === host.address) {
|
||||
dup = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user