From ec83358a44f1f8e2d7fbddbd3cb15695d906b193 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 2 Oct 2022 14:54:13 +0100 Subject: [PATCH] Fix keys to match API. --- public/config.json | 4 ---- src/components/FooterComponent.vue | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 public/config.json diff --git a/public/config.json b/public/config.json deleted file mode 100644 index 7e2686e3..00000000 --- a/public/config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "donation_href": "", - "status_page_href": "" -} diff --git a/src/components/FooterComponent.vue b/src/components/FooterComponent.vue index e357e6c7..1381c495 100644 --- a/src/components/FooterComponent.vue +++ b/src/components/FooterComponent.vue @@ -36,9 +36,9 @@ export default { }, methods: { async fetchConfig() { - this.fetchJson("confg.json").then(config => { - this.donationHref = config?.donation_href; - this.statusPageHref = config?.status_page_href; + this.fetchJson(this.apiUrl() + "/config").then(config => { + this.donationHref = config?.donationUrl; + this.statusPageHref = config?.statusPageUrl; }); }, },