mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-23 20:24:09 -05:00
feature/favorite-recipes (#443)
* add favorites options * bump dependencies * add badges to all cards * typo * remove console.log * fix site-loader viewport Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
@@ -54,9 +54,11 @@ const mutations = {
|
||||
};
|
||||
|
||||
const actions = {
|
||||
async requestUserData({ commit }) {
|
||||
const userData = await api.users.self();
|
||||
commit("setUserData", userData);
|
||||
async requestUserData({ getters, commit }) {
|
||||
if (getters.getIsLoggedIn) {
|
||||
const userData = await api.users.self();
|
||||
commit("setUserData", userData);
|
||||
}
|
||||
},
|
||||
|
||||
async resetTheme({ commit }) {
|
||||
|
||||
Reference in New Issue
Block a user