From c205f405d6ba6dad4ae173bee5c7f95b044ecee4 Mon Sep 17 00:00:00 2001 From: snoop Date: Wed, 18 Apr 2018 20:42:05 +0900 Subject: [PATCH] fixed comment --- .../component/setting/setting.component.ts | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/src/packages/discovery/component/setting/setting.component.ts b/src/packages/discovery/component/setting/setting.component.ts index bc0842d..fa96db3 100644 --- a/src/packages/discovery/component/setting/setting.component.ts +++ b/src/packages/discovery/component/setting/setting.component.ts @@ -98,39 +98,39 @@ export class SettingComponent implements OnInit, AfterContentInit { this.treeNodes = this.convertViewHost(this.testObj); - // this.settingSucceed$.subscribe( - // (succeed: boolean) => { - // if (succeed) { - // this.started = true; - // } - // }, - // (error: RPCClientError) => { - // console.log(error.response.message); - // } - // ); + this.settingSucceed$.subscribe( + (succeed: boolean) => { + if (succeed) { + this.started = true; + } + }, + (error: RPCClientError) => { + console.log(error.response.message); + } + ); - // this.probe$.subscribe( - // (probe: Probe) => { - // if (probe != null) { - // this.probe = probe; - // } - // }, - // (error: RPCClientError) => { - // console.log(error.response.message); - // } - // ); + this.probe$.subscribe( + (probe: Probe) => { + if (probe != null) { + this.probe = probe; + } + }, + (error: RPCClientError) => { + console.log(error.response.message); + } + ); - // this.discoveryResult$.subscribe( - // (zones: Map) => { - // console.log('ZoneZoneZoneZoneZoneZoneZone'); - // // console.log(JSON.stringify(zones)); - // this.treeNodes = this.convertTreeViewZone(zones); - // this.zones = zones; - // }, - // (error: RPCClientError) => { - // console.log(error.response.message); - // } - // ); + this.discoveryResult$.subscribe( + (zones: Map) => { + console.log('ZoneZoneZoneZoneZoneZoneZone'); + // console.log(JSON.stringify(zones)); + this.treeNodes = this.convertTreeViewZone(zones); + this.zones = zones; + }, + (error: RPCClientError) => { + console.log(error.response.message); + } + ); }