fixed discovery result
This commit is contained in:
parent
27066e5240
commit
ae3dc7a3ad
|
@ -82,6 +82,7 @@ export class SettingComponent implements OnInit, AfterContentInit {
|
|||
|
||||
|
||||
treeNodes = [];
|
||||
selectedNodes = [];
|
||||
zones: Map<string, Zone> = null;
|
||||
|
||||
checkedSet = new Set();
|
||||
|
@ -332,9 +333,17 @@ export class SettingComponent implements OnInit, AfterContentInit {
|
|||
// this.registStore.dispatch(new DiscoverStore.DiscoverZone(
|
||||
// {probeID: '52abd6fd57e511e7ac52080027658d13', discoveryZone: discoveryZone}));
|
||||
|
||||
console.log(this.zones);
|
||||
// console.log(this.zones);
|
||||
// isTarget Check
|
||||
|
||||
for ( const sn of this.selectedNodes) {
|
||||
if (sn.obj !== undefined && sn.obj !== null) {
|
||||
if (sn.obj.target !== undefined && sn.obj.target !== null) {
|
||||
sn.obj.target = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.zones.forEach((zone: Zone, key: string) => {
|
||||
if (zone.hosts !== undefined && zone.hosts !== null && zone.hosts.size > 0) {
|
||||
// FIXME: getHosts
|
||||
|
|
Loading…
Reference in New Issue
Block a user