From be1fc0c2b66ccd5db5de5ca65e4acd76aae9e362 Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Tue, 27 Jul 2021 20:03:53 +0200 Subject: [PATCH] Missing this part 2 --- src/components/Status.vue | 16 ++++++++++++---- src/components/Uptime.vue | 8 ++++++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/components/Status.vue b/src/components/Status.vue index a8f2ea59..ff430558 100644 --- a/src/components/Status.vue +++ b/src/components/Status.vue @@ -12,9 +12,13 @@ export default { color() { if (this.status === 0) { return "danger" - } if (this.status === 1) { + } + + if (this.status === 1) { return "primary" - } if (this.status === 2) { + } + + if (this.status === 2) { return "warning" } @@ -24,9 +28,13 @@ export default { text() { if (this.status === 0) { return "Down" - } if (this.status === 1) { + } + + if (this.status === 1) { return "Up" - } if (this.status === 2) { + } + + if (this.status === 2) { return "Pending" } diff --git a/src/components/Uptime.vue b/src/components/Uptime.vue index 411ff95d..39349623 100644 --- a/src/components/Uptime.vue +++ b/src/components/Uptime.vue @@ -28,9 +28,13 @@ export default { color() { if (this.lastHeartBeat.status === 0) { return "danger" - } if (this.lastHeartBeat.status === 1) { + } + + if (this.lastHeartBeat.status === 1) { return "primary" - } if (this.lastHeartBeat.status === 2) { + } + + if (this.lastHeartBeat.status === 2) { return "warning" }