From 2d9ab015753e942e7ff5514b3b7688b305049d7c Mon Sep 17 00:00:00 2001 From: lain Date: Tue, 30 Jun 2020 14:35:11 +0200 Subject: [PATCH] User Cards: Reduxify. --- src/components/user_avatar/user_avatar.js | 2 +- src/components/user_card/user_card.vue | 40 +++++++++---------- .../entity_normalizer.service.js | 17 ++++++++ 3 files changed, 38 insertions(+), 21 deletions(-) diff --git a/src/components/user_avatar/user_avatar.js b/src/components/user_avatar/user_avatar.js index 4adf8211..d12d8c94 100644 --- a/src/components/user_avatar/user_avatar.js +++ b/src/components/user_avatar/user_avatar.js @@ -16,7 +16,7 @@ const UserAvatar = { }, computed: { imgSrc () { - return this.showPlaceholder ? '/images/avi.png' : this.user.profile_image_url_original + return this.showPlaceholder ? '/images/avi.png' : this.user.redux.avatar } }, methods: { diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue index 9529d7f6..1ca934ac 100644 --- a/src/components/user_card/user_card.vue +++ b/src/components/user_card/user_card.vue @@ -37,22 +37,22 @@
- {{ user.name }} + {{ user.redux.display_name }}
@@ -68,7 +68,7 @@ class="user-screen-name" :to="userProfileLink(user)" > - @{{ user.screen_name }} + @{{ user.redux.acct }} - +