mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-19 15:31:20 -05:00
App Bar Rewrite (#347)
* Dummy Commit * consolidate sidebar and app bar * fix image error * consolidate sidebar * new icon for user menu * fixes #329 * fix double click on mobile * swap to computed properties * fix open/close bug * rewrite search for mobile * fix ingredient checkbox * cleanup console.logs * set default lang + bump version * draft changelog * reword * update env variables Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
@@ -10,6 +10,7 @@ const state = {
|
||||
cardsPerSection: 9,
|
||||
categories: [],
|
||||
},
|
||||
customPages: [],
|
||||
};
|
||||
|
||||
const mutations = {
|
||||
@@ -18,6 +19,9 @@ const mutations = {
|
||||
VueI18n.locale = payload.language;
|
||||
Vuetify.framework.lang.current = payload.language;
|
||||
},
|
||||
setCustomPages(state, payload) {
|
||||
state.customPages = payload;
|
||||
},
|
||||
};
|
||||
|
||||
const actions = {
|
||||
@@ -25,11 +29,16 @@ const actions = {
|
||||
let settings = await api.siteSettings.get();
|
||||
commit("setSettings", settings);
|
||||
},
|
||||
async requestCustomPages({commit }) {
|
||||
const customPages = await api.siteSettings.getPages()
|
||||
commit("setCustomPages", customPages)
|
||||
}
|
||||
};
|
||||
|
||||
const getters = {
|
||||
getActiveLang: state => state.siteSettings.language,
|
||||
getSiteSettings: state => state.siteSettings,
|
||||
getCustomPages: state => state.customPages,
|
||||
};
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user