OrganizationEntity.vue 852 B

12345678910111213141516171819202122232425262728
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import type { AvatarOrganization } from '#shared/components/CommonOrganizationAvatar'
  4. import CommonOrganizationAvatar from '#shared/components/CommonOrganizationAvatar/CommonOrganizationAvatar.vue'
  5. import type { Organization } from '#shared/graphql/types.ts'
  6. interface Props {
  7. entity: Organization
  8. }
  9. defineProps<Props>()
  10. </script>
  11. <template>
  12. <CommonLink
  13. :link="`/organizations/${entity.internalId}`"
  14. class="flex gap-2 hover:no-underline"
  15. >
  16. <!-- :TODO add popover with user details-->
  17. <CommonOrganizationAvatar
  18. :entity="entity as AvatarOrganization"
  19. size="small"
  20. />
  21. <CommonLabel class="text-blue-800 hover:underline"
  22. >{{ entity.name }}
  23. </CommonLabel>
  24. </CommonLink>
  25. </template>