mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
fix sidebar update
This commit is contained in:
parent
c2fcc2695b
commit
9f84e0923b
2 changed files with 6 additions and 0 deletions
|
@ -201,6 +201,7 @@ export default {
|
|||
this.$store.commit("setToken", newKey.access_token);
|
||||
this.refreshProfile();
|
||||
this.loading = false;
|
||||
this.$store.dispatch("requestUserData")
|
||||
},
|
||||
async changePassword() {
|
||||
this.paswordLoading = true;
|
||||
|
|
|
@ -54,6 +54,11 @@ const mutations = {
|
|||
};
|
||||
|
||||
const actions = {
|
||||
async requestUserData({ commit }) {
|
||||
const userData = await api.users.self();
|
||||
commit("setUserData", userData);
|
||||
},
|
||||
|
||||
async resetTheme({ commit }) {
|
||||
const defaultTheme = await api.themes.requestByName("default");
|
||||
if (defaultTheme.colors) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue