add 16 users cap to user list popover

This commit is contained in:
Shpuld Shpuldson 2020-07-16 18:08:00 +03:00
parent 85e09d81c7
commit caae2668ce
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,11 @@ const UserListPopover = {
components: {
Popover: () => import('../popover/popover.vue'),
UserAvatar: () => import('../user_avatar/user_avatar.vue')
},
computed: {
usersCapped () {
return this.users.slice(0, 16)
}
}
}

View file

@ -13,7 +13,7 @@
>
<div v-if="users.length">
<div
v-for="(user) in users"
v-for="(user) in usersCapped"
:key="user.id"
class="user-list-row"
>