add 16 users cap to user list popover
This commit is contained in:
parent
85e09d81c7
commit
caae2668ce
|
@ -7,6 +7,11 @@ const UserListPopover = {
|
||||||
components: {
|
components: {
|
||||||
Popover: () => import('../popover/popover.vue'),
|
Popover: () => import('../popover/popover.vue'),
|
||||||
UserAvatar: () => import('../user_avatar/user_avatar.vue')
|
UserAvatar: () => import('../user_avatar/user_avatar.vue')
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
usersCapped () {
|
||||||
|
return this.users.slice(0, 16)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
>
|
>
|
||||||
<div v-if="users.length">
|
<div v-if="users.length">
|
||||||
<div
|
<div
|
||||||
v-for="(user) in users"
|
v-for="(user) in usersCapped"
|
||||||
:key="user.id"
|
:key="user.id"
|
||||||
class="user-list-row"
|
class="user-list-row"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue