diff --git a/frontend/src/pages/Admin/Profile/index.vue b/frontend/src/pages/Admin/Profile/index.vue index 5dccad9ba..5bdf5ba36 100644 --- a/frontend/src/pages/Admin/Profile/index.vue +++ b/frontend/src/pages/Admin/Profile/index.vue @@ -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; diff --git a/frontend/src/store/modules/userSettings.js b/frontend/src/store/modules/userSettings.js index 46bd75aa2..352c89c43 100644 --- a/frontend/src/store/modules/userSettings.js +++ b/frontend/src/store/modules/userSettings.js @@ -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) {