fix sidebar update

This commit is contained in:
hay-kot 2021-03-30 15:13:40 -08:00
commit 9f84e0923b
2 changed files with 6 additions and 0 deletions

View file

@ -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;

View file

@ -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) {