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 = {