From a0c286cbf0eeb00c794959842798c3bcec417bfc Mon Sep 17 00:00:00 2001 From: tanasegabriel Date: Mon, 13 Jul 2026 21:31:20 +0000 Subject: [PATCH] fix(UptimeKuma): stop overwriting the configured url --- src/components/services/UptimeKuma.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/components/services/UptimeKuma.vue b/src/components/services/UptimeKuma.vue index a085437..5f8fdb6 100644 --- a/src/components/services/UptimeKuma.vue +++ b/src/components/services/UptimeKuma.vue @@ -33,7 +33,7 @@ export default { heartbeat: null, }), computed: { - dashboard: function () { + slug: function () { return this.item.slug ? this.item.slug : "default"; }, status: function () { @@ -108,9 +108,6 @@ export default { }, }, created() { - /* eslint-disable */ - this.item.url = `${this.item.url}/status/${this.dashboard}`; - // Set up auto-update method for the scheduler this.autoUpdateMethod = this.fetchStatus; @@ -120,13 +117,11 @@ export default { methods: { fetchStatus: function () { const now = Date.now(); - this.fetch(`/api/status-page/${this.dashboard}?cachebust=${now}`) + this.fetch(`/api/status-page/${this.slug}?cachebust=${now}`) .catch((e) => console.error(e)) .then((resp) => (this.incident = resp)); - this.fetch( - `/api/status-page/heartbeat/${this.dashboard}?cachebust=${now}`, - ) + this.fetch(`/api/status-page/heartbeat/${this.slug}?cachebust=${now}`) .catch((e) => console.error(e)) .then((resp) => (this.heartbeat = resp)); },