From ca5fb9a97e5c397438466ee74e349c6a2a071cf7 Mon Sep 17 00:00:00 2001 From: GPlay97 Date: Sun, 31 Oct 2021 21:53:56 +0100 Subject: [PATCH] Adds loading message while dashboard is loading - closes #60 --- src/components/Dashboard.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue index 9e9cf7c..4fc17c7 100644 --- a/src/components/Dashboard.vue +++ b/src/components/Dashboard.vue @@ -388,7 +388,9 @@ const now = parseInt(new Date() / 1000); const lastUpdate = this.getLastUpdate(); - if(!lastUpdate) { + if (!this.syncData.last_soc) { + this.dataOutdatedMessage = 'Data is loading. Please wait for dashboard to update'; + } else if(!lastUpdate) { this.dataOutdatedMessage = `There has never been a connection to a car. Please connect your car first time.` } else { this.dataOutdatedMessage =