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?
This commit is contained in:
Robert Schäfer 2019-02-26 22:37:12 +01:00
parent 2c606ec304
commit fba1072964

View File

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