From 2e131e5b22c53d81289ddb75d48380b59201002a Mon Sep 17 00:00:00 2001 From: lain Date: Tue, 30 Jun 2020 14:57:10 +0200 Subject: [PATCH] Profile Tab: Reduxify. --- src/components/settings_modal/tabs/profile_tab.js | 4 ++-- src/components/settings_modal/tabs/profile_tab.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/settings_modal/tabs/profile_tab.js b/src/components/settings_modal/tabs/profile_tab.js index e6db802d..b4bdf542 100644 --- a/src/components/settings_modal/tabs/profile_tab.js +++ b/src/components/settings_modal/tabs/profile_tab.js @@ -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) }) diff --git a/src/components/settings_modal/tabs/profile_tab.vue b/src/components/settings_modal/tabs/profile_tab.vue index 0f9210a6..c54a14c9 100644 --- a/src/components/settings_modal/tabs/profile_tab.vue +++ b/src/components/settings_modal/tabs/profile_tab.vue @@ -163,7 +163,7 @@

{{ $t('settings.current_avatar') }}

{{ $t('settings.set_new_avatar') }}

@@ -186,7 +186,7 @@

{{ $t('settings.profile_banner') }}

{{ $t('settings.current_profile_banner') }}

{{ $t('settings.set_new_profile_banner') }}