2019-04-01 19:30:23 -07:00
|
|
|
import UserAvatar from '../user_avatar/user_avatar.vue'
|
2019-05-08 09:04:33 -07:00
|
|
|
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
2019-04-01 19:30:23 -07:00
|
|
|
|
|
|
|
const AvatarList = {
|
2019-05-01 07:33:56 -07:00
|
|
|
props: ['users'],
|
2019-04-01 19:30:23 -07:00
|
|
|
computed: {
|
2019-05-01 07:33:56 -07:00
|
|
|
slicedUsers () {
|
|
|
|
return this.users ? this.users.slice(0, 15) : []
|
2019-04-01 19:30:23 -07:00
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
UserAvatar
|
2019-05-08 09:04:33 -07:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
userProfileLink (user) {
|
|
|
|
return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
|
|
|
|
}
|
2019-04-01 19:30:23 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AvatarList
|