From ae3dc7a3ad09008482532bb80e70b898bb2798a1 Mon Sep 17 00:00:00 2001 From: snoop Date: Wed, 25 Apr 2018 17:55:36 +0900 Subject: [PATCH] fixed discovery result --- .../discovery/component/setting/setting.component.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/packages/discovery/component/setting/setting.component.ts b/src/packages/discovery/component/setting/setting.component.ts index d358812..e62906b 100644 --- a/src/packages/discovery/component/setting/setting.component.ts +++ b/src/packages/discovery/component/setting/setting.component.ts @@ -82,6 +82,7 @@ export class SettingComponent implements OnInit, AfterContentInit { treeNodes = []; + selectedNodes = []; zones: Map = 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