button bug fixed on probe

This commit is contained in:
insanity 2017-07-25 15:25:55 +09:00
parent bf344fc561
commit 049c821f4b
2 changed files with 14 additions and 3 deletions

View File

@ -74,8 +74,8 @@ export class TitleBar extends React.Component<Props, State> {
public render(): JSX.Element {
return (
<Menu fluid style={{ 'borderLeft': '0px', 'borderRight': '0px', 'boxShadow': 'none', 'borderRadius': '0' }}>
<Menu.Item style={{ width: '250px' }}>
<Menu fluid style={{ 'borderLeft': '0px', 'borderRight': '0px', 'boxShadow': 'none', 'borderRadius': '0' }} pointing>
<Menu.Item style={{ width: '250px' }} >
<Header as='h3'>{this.showTitle()}
<Header.Subheader>
<Breadcrumb size='mini'>

View File

@ -46,6 +46,9 @@ export class ProbeDetailInfo extends React.Component<Props, State> {
public handleDiscovery(event: any, data: any): void {
alert('Discovery');
}
public showStartStopBtn(): JSX.Element {
return <Button content='Stop' icon='stop' labelPosition='left' negative />;
}
public render(): JSX.Element {
return (
@ -89,9 +92,17 @@ export class ProbeDetailInfo extends React.Component<Props, State> {
<Table.Cell>todo</Table.Cell>
</Table.Row>
</Table.Body>
<Table.Footer>
<Table.Row>
<Table.HeaderCell colSpan='2'>
{this.showStartStopBtn()}
<Button content='Discovery' icon='search' labelPosition='left' floated={'right'} positive onClick={this.handleDiscovery} />
</Table.HeaderCell>
</Table.Row>
</Table.Footer>
</Table>
<Button content='Discovery' icon='search' labelPosition='left' floated={'right'} positive onClick={this.handleDiscovery} />
{/* {this.showStartStopBtn()} */}
</Container>