From b1207d0b6fe3fd014e503c5db1a10faf32a763c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Conde?= Date: Fri, 20 Jan 2023 23:42:44 +0100 Subject: [PATCH] solari --- src/components/InSessionNow.vue | 7 +++++-- src/components/SolariBoard.vue | 24 ++++++++++++++---------- src/components/SolariBoardRow.vue | 30 +++++++++++++++++------------- src/helpers/time-helpers.js | 2 +- 4 files changed, 37 insertions(+), 26 deletions(-) diff --git a/src/components/InSessionNow.vue b/src/components/InSessionNow.vue index 5d00526..366a824 100644 --- a/src/components/InSessionNow.vue +++ b/src/components/InSessionNow.vue @@ -45,8 +45,12 @@ }, async mounted() { await this.loadData(); + this.startLoop(); }, methods: { + startLoop() { + setInterval(this.loadData, 10000) + }, async loadData() { this.isLoading = true; let data = await getFlightplansNow(); @@ -58,8 +62,7 @@ return acc; }, []); - // this.list = rows; - this.list = this.test; + this.list = rows; } }, components: { diff --git a/src/components/SolariBoard.vue b/src/components/SolariBoard.vue index b881557..648b4d9 100644 --- a/src/components/SolariBoard.vue +++ b/src/components/SolariBoard.vue @@ -22,7 +22,8 @@