CommonUsersList.vue 704 B

1234567891011121314151617181920212223242526
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import CommonUserAvatar from '#shared/components/CommonUserAvatar/CommonUserAvatar.vue'
  4. import type { AvatarUser } from '#shared/components/CommonUserAvatar/types.ts'
  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 px-3"
  16. >
  17. <CommonUserAvatar decorative :entity="user" class="ltr:mr-3 rtl:ml-3" />
  18. <span class="truncate">
  19. {{ user.fullname }}
  20. </span>
  21. </CommonLink>
  22. </template>