28 lines
675 B
JavaScript
28 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
|