From caae2668ce2da0b74f1332e7a4d55b4b504de040 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Thu, 16 Jul 2020 18:08:00 +0300 Subject: [PATCH] add 16 users cap to user list popover --- src/components/user_list_popover/user_list_popover.js | 5 +++++ src/components/user_list_popover/user_list_popover.vue | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/user_list_popover/user_list_popover.js b/src/components/user_list_popover/user_list_popover.js index 26d2ed1aee..b60f2c4c4b 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 6bd786b378..185c73ca92 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 @@ >