probe / noauth status

This commit is contained in:
insanity 2017-07-27 12:54:39 +09:00
parent 2b1c97fa8b
commit 10b8d42b74
3 changed files with 26 additions and 10 deletions

View File

@ -43,7 +43,7 @@ export class NoauthProbeList extends React.Component<any, any> {
{
'id': '11',
'MetaNoAuthProbeStatus': {
'name': 'NORMAL',
'name': 'PROCESS',
},
'hostName': 'insanity windows',
'macAddress': '14:fe:b5:9d:54:7e',
@ -60,7 +60,24 @@ export class NoauthProbeList extends React.Component<any, any> {
{
'id': '22',
'MetaNoAuthProbeStatus': {
'name': 'NORMAL',
'name': 'PROCESS',
},
'hostName': 'insanity ubuntu',
'macAddress': '14:fe:b5:9d:54:7e',
'ipAddress': '192.168.1.105',
'tempProbeKey': '45374d4egsdfw332',
'apiKey': '45374d4egsdfw332',
'domain': {
},
'probe': {
},
},
{
'id': '33',
'MetaNoAuthProbeStatus': {
'name': 'PROCESS',
},
'hostName': 'insanity ubuntu',
'macAddress': '14:fe:b5:9d:54:7e',

View File

@ -42,7 +42,7 @@ export class ProbeDetailInfo extends React.Component<Props, State> {
let p = {
'id': '11',
'status': {
'name': 'STARTED',
'name': 'INITIAL',
},
'domain': {
'name': 'insanity\'s domain',
@ -89,11 +89,10 @@ export class ProbeDetailInfo extends React.Component<Props, State> {
//
// }
public showStartStopBtn(): JSX.Element {
if (this.state.probe.status.name === 'STARTED') {
public showStopBtn(): JSX.Element {
if (this.state.probe.status.name === 'NORMAL') {
return <Button content='Stop' icon='stop' labelPosition='left' negative />;
}
return <Button content='Start' icon='play' labelPosition='left' positive />;
}
public render(): JSX.Element {
@ -147,7 +146,7 @@ export class ProbeDetailInfo extends React.Component<Props, State> {
<Table.Footer>
<Table.Row>
<Table.HeaderCell colSpan='2'>
{this.showStartStopBtn()}
{this.showStopBtn()}
<Button content='Discovery' icon='search' labelPosition='left' floated={'right'} positive onClick={this.handleDiscovery} />
</Table.HeaderCell>
</Table.Row>

View File

@ -37,7 +37,7 @@ export class ProbeList extends React.Component<Props, State> {
{
'id': '11',
'status': {
'name': 'STARTED',
'name': 'NORMAL',
},
'domain': {
'name': 'insanity\'s domain',
@ -56,7 +56,7 @@ export class ProbeList extends React.Component<Props, State> {
{
'id': '22',
'status': {
'name': 'STARTED',
'name': 'INITIAL',
},
'domain': {
'name': 'insanity\'s domain',
@ -71,7 +71,7 @@ export class ProbeList extends React.Component<Props, State> {
{
'id': '33',
'status': {
'name': 'STARTED',
'name': 'NORMAL',
},
'domain': {
'name': 'insanity\'s domain',