CommonUsersList.vue 729 B

1234567891011121314151617181920212223242526
  1. <!-- Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import type { AvatarUser } from '@shared/components/CommonUserAvatar'
  4. import CommonUserAvatar from '@shared/components/CommonUserAvatar/CommonUserAvatar.vue'
  5. interface Props {
  6. users: (AvatarUser & { internalId: number })[]
  7. }
  8. defineProps<Props>()
  9. </script>
  10. <template>
  11. <CommonLink
  12. v-for="user of users"
  13. :key="user.id"
  14. :link="`/users/${user.internalId}`"
  15. class="flex h-14 items-center"
  16. >
  17. <CommonUserAvatar decorative :entity="user" class="ltr:mr-3 rtl:ml-3" />
  18. <span class="overflow-hidden text-ellipsis whitespace-nowrap">
  19. {{ user.fullname }}
  20. </span>
  21. </CommonLink>
  22. </template>