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