diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-07-16 18:08:00 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-07-16 18:08:00 +0300 |
| commit | caae2668ce2da0b74f1332e7a4d55b4b504de040 (patch) | |
| tree | d1214309d159a8e998ab8aa128eb9bed9d74b528 | |
| parent | 85e09d81c74547daf30c5b9be97eb11beff8f490 (diff) | |
add 16 users cap to user list popover
| -rw-r--r-- | src/components/user_list_popover/user_list_popover.js | 5 | ||||
| -rw-r--r-- | src/components/user_list_popover/user_list_popover.vue | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/components/user_list_popover/user_list_popover.js b/src/components/user_list_popover/user_list_popover.js index 26d2ed1a..b60f2c4c 100644 --- a/src/components/user_list_popover/user_list_popover.js +++ b/src/components/user_list_popover/user_list_popover.js @@ -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) + } } } diff --git a/src/components/user_list_popover/user_list_popover.vue b/src/components/user_list_popover/user_list_popover.vue index 6bd786b3..185c73ca 100644 --- a/src/components/user_list_popover/user_list_popover.vue +++ b/src/components/user_list_popover/user_list_popover.vue @@ -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" > |
