2019-03-06 06:01:49 +11:00
|
|
|
import UserCard from '../user_card/user_card.vue'
|
2019-02-13 23:14:23 +11:00
|
|
|
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: {
|
2019-03-06 06:01:49 +11:00
|
|
|
UserCard,
|
2019-02-13 23:14:23 +11:00
|
|
|
UserAvatar
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
toggleUserExpanded () {
|
|
|
|
this.userExpanded = !this.userExpanded
|
|
|
|
},
|
|
|
|
userProfileLink (user) {
|
|
|
|
return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default BasicUserCard
|