From 95d73348e5dd8fd0fbb1b6747c58b346ecf772ad Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Sun, 29 May 2022 09:46:05 +0200 Subject: Updates --- src/components/services/Tautulli.vue | 6 ++++-- src/components/services/UptimeKuma.vue | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src/components/services') diff --git a/src/components/services/Tautulli.vue b/src/components/services/Tautulli.vue index 2e8f8f5..0f27ff1 100644 --- a/src/components/services/Tautulli.vue +++ b/src/components/services/Tautulli.vue @@ -50,14 +50,16 @@ export default { methods: { fetchStatus: async function () { try { - const response = await this.fetch(`/api/v2?apikey=${this.item.apikey}&cmd=get_activity`); + const response = await this.fetch( + `/api/v2?apikey=${this.item.apikey}&cmd=get_activity` + ); this.error = false; this.stats = response.response.data; } catch (e) { this.error = true; console.error(e); } - } + }, }, }; diff --git a/src/components/services/UptimeKuma.vue b/src/components/services/UptimeKuma.vue index 5dd75f3..3be53b8 100644 --- a/src/components/services/UptimeKuma.vue +++ b/src/components/services/UptimeKuma.vue @@ -108,7 +108,9 @@ export default { .catch((e) => console.error(e)) .then((resp) => (this.incident = resp)); - this.fetch(`/api/status-page/heartbeat/${this.dashboard}?cachebust=${Date.now()}`) + this.fetch( + `/api/status-page/heartbeat/${this.dashboard}?cachebust=${Date.now()}` + ) .catch((e) => console.error(e)) .then((resp) => (this.heartbeat = resp)); }, -- cgit v1.2.3