fixed comment

This commit is contained in:
snoop 2018-04-18 20:42:05 +09:00
parent 98ef4ebfe9
commit c205f405d6

View File

@ -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<string, Zone>) => {
// 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<string, Zone>) => {
console.log('ZoneZoneZoneZoneZoneZoneZone');
// console.log(JSON.stringify(zones));
this.treeNodes = this.convertTreeViewZone(zones);
this.zones = zones;
},
(error: RPCClientError) => {
console.log(error.response.message);
}
);
}