UserEntity.vue 629 B

1234567891011121314151617181920212223
  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 { User } from '#shared/graphql/types.ts'
  5. interface Props {
  6. entity: User
  7. }
  8. defineProps<Props>()
  9. </script>
  10. <template>
  11. <CommonLink
  12. :link="`/user/profile/${entity.internalId}`"
  13. class="flex gap-2 hover:no-underline"
  14. >
  15. <CommonUserAvatar :entity="entity" size="small" />
  16. <CommonLabel class="text-blue-800 hover:underline"
  17. >{{ `${entity.fullname}` }}
  18. </CommonLabel>
  19. </CommonLink>
  20. </template>