From c061d3fca19f0bc4ebf2368851cd0b2ef5721d56 Mon Sep 17 00:00:00 2001 From: DeNic0la Date: Fri, 7 Apr 2023 13:06:00 +0200 Subject: [PATCH] Updating displayName Reactive #2994 --- frontend/src/views/Profile.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/views/Profile.vue b/frontend/src/views/Profile.vue index cba92cda9e..abc1543c8a 100644 --- a/frontend/src/views/Profile.vue +++ b/frontend/src/views/Profile.vue @@ -35,16 +35,19 @@ :name="$tc('entity.user.fields.firstname')" :uri="profile._meta.self" fieldname="firstname" + @finished="reloadUser()" /> this.api.reload(user.profile())) } }, + methods: { + reloadUser() { + this.api.reload(this.user).then((user) => { + this.$store.commit('login', user) + }) + }, + }, }