From db1efc0c3fb8dfa3fed0334f5cecc2d7467854b7 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Thu, 6 Apr 2023 10:56:15 -0400 Subject: [PATCH 1/2] Gray out label for up/down/maintenance labels when they are zero --- src/pages/DashboardHome.vue | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/src/pages/DashboardHome.vue b/src/pages/DashboardHome.vue index 2745d91b..19f330c1 100644 --- a/src/pages/DashboardHome.vue +++ b/src/pages/DashboardHome.vue @@ -9,15 +9,40 @@

{{ $t("Up") }}

- {{ $root.stats.up }} + + {{ $root.stats.up }} +

{{ $t("Down") }}

- {{ $root.stats.down }} + + {{ $root.stats.down }} +

{{ $t("Maintenance") }}

- {{ $root.stats.maintenance }} + + {{ $root.stats.maintenance }} +

{{ $t("Unknown") }}

From d6ebcfd8811e6ed96434dc12c7e4211abf55710c Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 15 Feb 2024 13:08:26 +0100 Subject: [PATCH 2/2] Simplified how the classes are asigned --- src/pages/DashboardHome.vue | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/src/pages/DashboardHome.vue b/src/pages/DashboardHome.vue index 3610bf21..78bee91f 100644 --- a/src/pages/DashboardHome.vue +++ b/src/pages/DashboardHome.vue @@ -10,10 +10,8 @@

{{ $t("Up") }}

{{ $root.stats.up }} @@ -21,12 +19,8 @@

{{ $t("Down") }}

{{ $root.stats.down }} @@ -34,12 +28,8 @@

{{ $t("Maintenance") }}

{{ $root.stats.maintenance }}