From c1203ff8c9f65318e6f67941ed9e794dc79b41e6 Mon Sep 17 00:00:00 2001
From: Christoph Haas <christoph.h@sprinternet.at>
Date: Tue, 6 Oct 2020 23:02:00 +0200
Subject: [PATCH] fix data loading bug

---
 ui/src/components/Status.vue | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ui/src/components/Status.vue b/ui/src/components/Status.vue
index 066b63e..739e8c7 100644
--- a/ui/src/components/Status.vue
+++ b/ui/src/components/Status.vue
@@ -125,6 +125,14 @@
       }
     },
 
+    watch: {
+      enabled(newValue, oldValue) {
+        if (this.enabled) {
+          this.readStatus()
+        }
+      },
+    },
+
     methods: {
       ...mapActions('status', {
         readStatus: 'read',
-- 
GitLab