TicketDuplicateDetectionAlert.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import type { TicketDuplicateDetectionItem } from '#shared/entities/ticket/types.ts'
  4. interface Props {
  5. tickets?: TicketDuplicateDetectionItem[]
  6. }
  7. defineProps<Props>()
  8. </script>
  9. <template>
  10. <CommonAlert variant="warning">
  11. <div class="flex flex-col gap-1.5">
  12. <CommonLabel class="text-yellow-600" size="large">
  13. {{ $c.ticket_duplicate_detection_title }}
  14. </CommonLabel>
  15. <CommonLabel class="text-yellow-600">
  16. {{ $c.ticket_duplicate_detection_body }}
  17. </CommonLabel>
  18. <ul
  19. v-for="[id, number, title] in tickets"
  20. :key="id"
  21. class="list-inside list-disc"
  22. >
  23. <li>
  24. <CommonLabel class="text-yellow-600"
  25. ><CommonLink
  26. :link="`/tickets/${id}`"
  27. class="text-yellow-600 !underline"
  28. >{{ number }}</CommonLink
  29. >
  30. {{ title }}</CommonLabel
  31. >
  32. </li>
  33. </ul>
  34. </div>
  35. </CommonAlert>
  36. </template>