user_list_popover.js (791B)
- import { defineAsyncComponent } from 'vue'
- import RichContent from 'src/components/rich_content/rich_content.jsx'
- import UnicodeDomainIndicator from '../unicode_domain_indicator/unicode_domain_indicator.vue'
- import { library } from '@fortawesome/fontawesome-svg-core'
- import { faCircleNotch } from '@fortawesome/free-solid-svg-icons'
- library.add(
- faCircleNotch
- )
- const UserListPopover = {
- name: 'UserListPopover',
- props: [
- 'users'
- ],
- components: {
- RichContent,
- UnicodeDomainIndicator,
- Popover: defineAsyncComponent(() => import('../popover/popover.vue')),
- UserAvatar: defineAsyncComponent(() => import('../user_avatar/user_avatar.vue'))
- },
- computed: {
- usersCapped () {
- return this.users.slice(0, 16)
- }
- }
- }
- export default UserListPopover