Basic user card: Reduxify.

This commit is contained in:
lain 2020-06-30 14:43:56 +02:00
parent 2d9ab01575
commit 9b437c4e56
2 changed files with 7 additions and 7 deletions

View file

@ -20,7 +20,7 @@ const BasicUserCard = {
this.userExpanded = !this.userExpanded
},
userProfileLink (user) {
return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
return generateProfileLink(user.redux.id, user.redux.acct, this.$store.state.instance.restrictedNicknames)
}
}
}

View file

@ -12,7 +12,7 @@
class="basic-user-card-expanded-content"
>
<UserCard
:user-id="user.id"
:user-id="user.redux.id"
:rounded="true"
:bordered="true"
/>
@ -22,27 +22,27 @@
class="basic-user-card-collapsed-content"
>
<div
:title="user.name"
:title="user.redux.display_name"
class="basic-user-card-user-name"
>
<!-- eslint-disable vue/no-v-html -->
<span
v-if="user.name_html"
v-if="user.redux.display_name_html"
class="basic-user-card-user-name-value"
v-html="user.name_html"
v-html="user.redux.display_name_html"
/>
<!-- eslint-enable vue/no-v-html -->
<span
v-else
class="basic-user-card-user-name-value"
>{{ user.name }}</span>
>{{ user.redux.display_name }}</span>
</div>
<div>
<router-link
class="basic-user-card-screen-name"
:to="userProfileLink(user)"
>
@{{ user.screen_name }}
@{{ user.redux.acct }}
</router-link>
</div>
<slot />