mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-11-11 07:39:15 +01:00
29 lines
675 B
JavaScript
29 lines
675 B
JavaScript
|
import UserCardContent from '../user_card_content/user_card_content.vue'
|
||
|
import UserAvatar from '../user_avatar/user_avatar.vue'
|
||
|
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
||
|
|
||
|
const BasicUserCard = {
|
||
|
props: [
|
||
|
'user'
|
||
|
],
|
||
|
data () {
|
||
|
return {
|
||
|
userExpanded: false
|
||
|
}
|
||
|
},
|
||
|
components: {
|
||
|
UserCardContent,
|
||
|
UserAvatar
|
||
|
},
|
||
|
methods: {
|
||
|
toggleUserExpanded () {
|
||
|
this.userExpanded = !this.userExpanded
|
||
|
},
|
||
|
userProfileLink (user) {
|
||
|
return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default BasicUserCard
|