get settings

This commit is contained in:
hay-kot 2021-04-25 17:45:45 -08:00
commit d578a7c41d
2 changed files with 5 additions and 4 deletions

View file

@ -46,6 +46,7 @@ export default {
this.darkModeAddEventListener();
this.$store.dispatch("requestAppInfo");
this.$store.dispatch("requestCustomPages");
this.$store.dispatch("requestSiteSettings");
},
methods: {

View file

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