mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
get settings
This commit is contained in:
parent
697cb88a2b
commit
d578a7c41d
2 changed files with 5 additions and 4 deletions
|
@ -46,6 +46,7 @@ export default {
|
||||||
this.darkModeAddEventListener();
|
this.darkModeAddEventListener();
|
||||||
this.$store.dispatch("requestAppInfo");
|
this.$store.dispatch("requestAppInfo");
|
||||||
this.$store.dispatch("requestCustomPages");
|
this.$store.dispatch("requestCustomPages");
|
||||||
|
this.$store.dispatch("requestSiteSettings");
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -29,10 +29,10 @@ const actions = {
|
||||||
let settings = await api.siteSettings.get();
|
let settings = await api.siteSettings.get();
|
||||||
commit("setSettings", settings);
|
commit("setSettings", settings);
|
||||||
},
|
},
|
||||||
async requestCustomPages({commit }) {
|
async requestCustomPages({ commit }) {
|
||||||
const customPages = await api.siteSettings.getPages()
|
const customPages = await api.siteSettings.getPages();
|
||||||
commit("setCustomPages", customPages)
|
commit("setCustomPages", customPages);
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const getters = {
|
const getters = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue