Use 'userProfileLink' to generate user-profile link
This commit is contained in:
parent
70c48a076d
commit
e4a34cc4d4
14 changed files with 58 additions and 28 deletions
|
@ -1,4 +1,5 @@
|
|||
import UserCardContent from '../user_card_content/user_card_content.vue'
|
||||
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
||||
|
||||
const UserCard = {
|
||||
props: [
|
||||
|
@ -26,6 +27,11 @@ const UserCard = {
|
|||
this.$store.state.api.backendInteractor.denyUser(this.user.id)
|
||||
this.$store.dispatch('removeFollowRequest', this.user)
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
userProfileLink (user) {
|
||||
return generateProfileLink(user.id, user.screen_name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue