From fba1072964d67654cd5788c18335f491b3668e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Tue, 26 Feb 2019 22:37:12 +0100 Subject: [PATCH] Add back the `fetchCurrentUser` There was another reason: The user menu in the top right listens on `auth/user` which does not get updated otherwise. We should overthink having two separate result types in the backend: * currentUser: [LoggedInUser] * User: [User] Why not return `User` in both cases? --- pages/settings/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/settings/index.vue b/pages/settings/index.vue index 57b5a4fff..32824c4c3 100644 --- a/pages/settings/index.vue +++ b/pages/settings/index.vue @@ -135,6 +135,9 @@ export default { update: (store, { data: { UpdateUser } }) => { const { name, locationName, about } = UpdateUser this.form = { name, locationName, about } + // update the user menu, too + // which listens on auth/user + this.$store.dispatch('auth/fetchCurrentUser') } }) .then(data => {