member_webapp/@overflow/infra/component/old/infra-probe-summary.component.ts

54 lines
1.5 KiB
TypeScript
Raw Normal View History

2018-05-24 10:50:43 +00:00
// import { Component, OnInit, AfterContentInit, Input, OnChanges } from '@angular/core';
// import { Store, select } from '@ngrx/store';
// import { RPCClientError } from '@loafer/ng-rpc';
// import * as DetailStore from '@overflow/probe/store/probe-host';
// import { ProbeHostSelector } from '@overflow/probe/store';
// import { Probe, ProbeHost } from '@overflow/commons-typescript/model/probe';
// @Component({
2018-06-01 10:27:27 +00:00
// selector: 'of-infra-probe-summary',
// templateUrl: './infra-probe-summary.component.html',
2018-05-24 10:50:43 +00:00
// })
2018-06-01 10:27:27 +00:00
// export class InfraProbeSummaryComponent implements OnInit, AfterContentInit, OnChanges {
2018-05-24 10:50:43 +00:00
// @Input() probe: Object;
// @Input() visible: boolean;
// probeHost$ = this.detailStore.pipe(select(ProbeHostSelector.select('probeHost')));
// probeHost: ProbeHost;
// constructor(
// private detailStore: Store<DetailStore.State>,
// ) { }
// ngOnInit() {
// this.probeHost$.subscribe(
// (probeHost: ProbeHost) => {
// if (probeHost) {
// console.log(probeHost);
// this.probeHost = probeHost;
// }
// },
// (error: RPCClientError) => {
// console.log(error.response.message);
// }
// );
// }
// ngAfterContentInit() {
// console.log('$$$$$$$$$$');
// console.log(this.probe);
// console.log('$$$$$$$$$$');
// // this.detailStore.dispatch(
// // new DetailStore.ReadByProbe(this.probe)
// // );
// }
// ngOnChanges() {
// }
// }
2018-04-25 09:04:47 +00:00