Skip to content

Commit

Permalink
Updating displayName Reactive ecamp#2994
Browse files Browse the repository at this point in the history
  • Loading branch information
DeNic0la committed Apr 7, 2023
1 parent bc53b10 commit c061d3f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/src/views/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,19 @@
:name="$tc('entity.user.fields.firstname')"
:uri="profile._meta.self"
fieldname="firstname"
@finished="reloadUser()"
/>
<api-text-field
:name="$tc('entity.user.fields.surname')"
:uri="profile._meta.self"
fieldname="surname"
@finished="reloadUser()"
/>
<api-text-field
:name="$tc('entity.user.fields.nickname')"
:uri="profile._meta.self"
fieldname="nickname"
@finished="reloadUser()"
/>
<api-select
:name="$tc('entity.user.fields.language')"
Expand Down Expand Up @@ -119,6 +122,13 @@ export default {
this.api.reload(this.user).then((user) => this.api.reload(user.profile()))
}
},
methods: {
reloadUser() {
this.api.reload(this.user).then((user) => {
this.$store.commit('login', user)
})
},
},
}
</script>
Expand Down

0 comments on commit c061d3f

Please sign in to comment.