Skip to content

Commit

Permalink
Adds loading message while dashboard is loading
Browse files Browse the repository at this point in the history
- closes #60
  • Loading branch information
GPlay97 committed Oct 31, 2021
1 parent fc7adaf commit ca5fb9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit ca5fb9a

Please sign in to comment.