mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -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.$store.commit("setToken", newKey.access_token);
|
||||||
this.refreshProfile();
|
this.refreshProfile();
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
this.$store.dispatch("requestUserData")
|
||||||
},
|
},
|
||||||
async changePassword() {
|
async changePassword() {
|
||||||
this.paswordLoading = true;
|
this.paswordLoading = true;
|
||||||
|
|
|
@ -54,6 +54,11 @@ const mutations = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
|
async requestUserData({ commit }) {
|
||||||
|
const userData = await api.users.self();
|
||||||
|
commit("setUserData", userData);
|
||||||
|
},
|
||||||
|
|
||||||
async resetTheme({ commit }) {
|
async resetTheme({ commit }) {
|
||||||
const defaultTheme = await api.themes.requestByName("default");
|
const defaultTheme = await api.themes.requestByName("default");
|
||||||
if (defaultTheme.colors) {
|
if (defaultTheme.colors) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue