Profile Tab: Reduxify.

This commit is contained in:
lain 2020-06-30 14:57:10 +02:00
parent 30149f55f4
commit 2e131e5b22
2 changed files with 4 additions and 4 deletions

View file

@ -102,8 +102,8 @@ const ProfileTab = {
show_role: this.showRole
/* eslint-enable camelcase */
} }).then((user) => {
this.newFields.splice(user.fields.length)
merge(this.newFields, user.fields)
this.newFields.splice(user.redux.fields.length)
merge(this.newFields, user.redux.fields)
this.$store.commit('addNewUsers', [user])
this.$store.commit('setCurrentUser', user)
})

View file

@ -163,7 +163,7 @@
</p>
<p>{{ $t('settings.current_avatar') }}</p>
<img
:src="user.profile_image_url_original"
:src="user.redux.avatar"
class="current-avatar"
>
<p>{{ $t('settings.set_new_avatar') }}</p>
@ -186,7 +186,7 @@
<h2>{{ $t('settings.profile_banner') }}</h2>
<p>{{ $t('settings.current_profile_banner') }}</p>
<img
:src="user.cover_photo"
:src="user.redux.header"
class="banner"
>
<p>{{ $t('settings.set_new_profile_banner') }}</p>