From 10b8d42b744ed18a3e5155284a4614960e29a697 Mon Sep 17 00:00:00 2001 From: insanity Date: Thu, 27 Jul 2017 12:54:39 +0900 Subject: [PATCH] probe / noauth status --- .../react/components/NoauthProbeList.tsx | 21 +++++++++++++++++-- .../react/components/ProbeDetailInfo.tsx | 9 ++++---- .../probe/react/components/ProbeList.tsx | 6 +++--- 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/src/ts/@overflow/noauthprobe/react/components/NoauthProbeList.tsx b/src/ts/@overflow/noauthprobe/react/components/NoauthProbeList.tsx index ddebdd7..4b599db 100644 --- a/src/ts/@overflow/noauthprobe/react/components/NoauthProbeList.tsx +++ b/src/ts/@overflow/noauthprobe/react/components/NoauthProbeList.tsx @@ -43,7 +43,7 @@ export class NoauthProbeList extends React.Component { { '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 { { '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', diff --git a/src/ts/@overflow/probe/react/components/ProbeDetailInfo.tsx b/src/ts/@overflow/probe/react/components/ProbeDetailInfo.tsx index 0fbb9f8..fe73ba4 100644 --- a/src/ts/@overflow/probe/react/components/ProbeDetailInfo.tsx +++ b/src/ts/@overflow/probe/react/components/ProbeDetailInfo.tsx @@ -42,7 +42,7 @@ export class ProbeDetailInfo extends React.Component { let p = { 'id': '11', 'status': { - 'name': 'STARTED', + 'name': 'INITIAL', }, 'domain': { 'name': 'insanity\'s domain', @@ -89,11 +89,10 @@ export class ProbeDetailInfo extends React.Component { // // } - public showStartStopBtn(): JSX.Element { - if (this.state.probe.status.name === 'STARTED') { + public showStopBtn(): JSX.Element { + if (this.state.probe.status.name === 'NORMAL') { return