From d578a7c41dcc7389d5d6392c0d3d8dc1470d30bf Mon Sep 17 00:00:00 2001 From: hay-kot Date: Sun, 25 Apr 2021 17:45:45 -0800 Subject: [PATCH] get settings --- frontend/src/App.vue | 1 + frontend/src/store/modules/siteSettings.js | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index b3474e9eb..56b8c537a 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -46,6 +46,7 @@ export default { this.darkModeAddEventListener(); this.$store.dispatch("requestAppInfo"); this.$store.dispatch("requestCustomPages"); + this.$store.dispatch("requestSiteSettings"); }, methods: { diff --git a/frontend/src/store/modules/siteSettings.js b/frontend/src/store/modules/siteSettings.js index 11591a079..9bf647397 100644 --- a/frontend/src/store/modules/siteSettings.js +++ b/frontend/src/store/modules/siteSettings.js @@ -29,10 +29,10 @@ const actions = { let settings = await api.siteSettings.get(); commit("setSettings", settings); }, - async requestCustomPages({commit }) { - const customPages = await api.siteSettings.getPages() - commit("setCustomPages", customPages) - } + async requestCustomPages({ commit }) { + const customPages = await api.siteSettings.getPages(); + commit("setCustomPages", customPages); + }, }; const getters = {