From 042e846b1c5dc92f71d0d663d9d197b41ba3b180 Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 12 Oct 2017 15:04:32 +0900 Subject: [PATCH] fixed discovery start --- .../discovery/api/service/DiscoveryService.ts | 22 +++++++++++++++++++ .../react/components/DiscoveryTable.tsx | 2 ++ 2 files changed, 24 insertions(+) diff --git a/src/ts/@overflow/discovery/api/service/DiscoveryService.ts b/src/ts/@overflow/discovery/api/service/DiscoveryService.ts index c5c3060..9bb18cc 100644 --- a/src/ts/@overflow/discovery/api/service/DiscoveryService.ts +++ b/src/ts/@overflow/discovery/api/service/DiscoveryService.ts @@ -1,5 +1,10 @@ import { Service } from '@overflow/commons/api/service'; +import DiscoveryIngActions from '../../redux/action/ing'; + +import Host from '../model/Host'; +import Port from '../model/Port'; +import DisService from '../model/Service'; export class DiscoveryService extends Service { // tslint:disable-next-line:no-empty @@ -13,13 +18,30 @@ export class DiscoveryService extends Service { } public discoveryIngHost(params: any): void { + + let host: Host = params; + console.log('discoveryIngHost'); + console.log(host); + + this.dispatch(DiscoveryIngActions.RECEIVE_HOST, host); } public discoveryIngPort(params: any): void { + + let port: Port = params; + console.log('discoveryIngPort'); + console.log(port); + + this.dispatch(DiscoveryIngActions.RECEIVE_PORT, port); } public discoveryIngService(params: any): void { + + let service: DisService = params; console.log('discoveryIngService'); + console.log(service); + + this.dispatch(DiscoveryIngActions.RECEIVE_SERVICE, service); } } diff --git a/src/ts/@overflow/discovery/react/components/DiscoveryTable.tsx b/src/ts/@overflow/discovery/react/components/DiscoveryTable.tsx index 0df89aa..4a8b5d0 100644 --- a/src/ts/@overflow/discovery/react/components/DiscoveryTable.tsx +++ b/src/ts/@overflow/discovery/react/components/DiscoveryTable.tsx @@ -123,8 +123,10 @@ export class DiscoveryTable extends React.Component { services: convert, }; + this.props.onDiscoveryStart(discoveryStartInfo); this.props.onProbeChange(discoveryStartInfo); + } public render(): JSX.Element {