diff --git a/src/ts/@overflow/probe/react/components/ProbeDetailInfo.tsx b/src/ts/@overflow/probe/react/components/ProbeDetailInfo.tsx index 9568eed..b8ddb97 100644 --- a/src/ts/@overflow/probe/react/components/ProbeDetailInfo.tsx +++ b/src/ts/@overflow/probe/react/components/ProbeDetailInfo.tsx @@ -9,7 +9,7 @@ import { } from 'semantic-ui-react'; // import { TargetTable } from '@overflow/target/react/components/TargetList'; import Probe from '@overflow/probe/api/model/Probe'; -import {Discovery} from '../../../discovery/react/components/Discovery'; +import { Discovery } from '../../../discovery/react/components/Discovery'; export interface StateProps { id: string; @@ -24,7 +24,7 @@ export type Props = StateProps & DispatchProps; export interface State { probe: Probe; id: string; - isDiscovery:boolean; + isDiscovery: boolean; } @@ -53,18 +53,27 @@ export class ProbeDetailInfo extends React.Component { public handleDiscovery = (event: any, data: any): void => { console.log(event); - // let probeId = String(this.state.id); - // this.props.onDiscoverySelect(this.state.id); + this.setState({isDiscovery: true}); + // // let probeId = String(this.state.id); + // // this.props.onDiscoverySelect(this.state.id); // if (this.state.isDiscovery) { - // this.setState({isDiscovery: false}); - // } else { - // this.setState({isDiscovery: true}); - // } + // // this.setState({isDiscovery: false}); + // } else { + // // this.setState({isDiscovery: true}); + // return null; + // } + } + + public renderDiscovery(): JSX.Element { + if (this.state.isDiscovery) { + return ; + } + return null; } public showStartStopBtn(): JSX.Element { - return