mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -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.$store.dispatch("requestAppInfo");
|
||||
this.$store.dispatch("requestCustomPages");
|
||||
this.$store.dispatch("requestSiteSettings");
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue