1234567891011121314151617181920212223242526 |
- <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
- <script setup lang="ts">
- import CommonUserAvatar from '#shared/components/CommonUserAvatar/CommonUserAvatar.vue'
- import type { AvatarUser } from '#shared/components/CommonUserAvatar/types.ts'
- interface Props {
- users: (AvatarUser & { internalId: number })[]
- }
- defineProps<Props>()
- </script>
- <template>
- <CommonLink
- v-for="user of users"
- :key="user.id"
- :link="`/users/${user.internalId}`"
- class="flex h-14 items-center px-3"
- >
- <CommonUserAvatar decorative :entity="user" class="ltr:mr-3 rtl:ml-3" />
- <span class="truncate">
- {{ user.fullname }}
- </span>
- </CommonLink>
- </template>
|