TicketDuplicateDetectionDialog.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import CommonDialog from '#mobile/components/CommonDialog/CommonDialog.vue'
  4. import type { TicketDuplicateDetectionItem } from '#mobile/pages/ticket/composable/useTicketDuplicateDetectionHandler.ts'
  5. defineProps<{
  6. name: string
  7. tickets: TicketDuplicateDetectionItem[]
  8. }>()
  9. </script>
  10. <template>
  11. <CommonDialog
  12. :label="$c.ticket_duplicate_detection_title"
  13. class="w-full"
  14. :name="name"
  15. no-autofocus
  16. >
  17. <div class="w-full p-4">
  18. <p class="mb-3 whitespace-pre-wrap break-words">
  19. {{ $c.ticket_duplicate_detection_body }}
  20. </p>
  21. <CommonLink
  22. v-for="[id, number, title] in tickets"
  23. :key="id"
  24. :link="`/tickets/${id}`"
  25. >
  26. <div class="flex cursor-pointer ltr:pr-3 rtl:pl-3">
  27. <div
  28. class="flex flex-1 items-center gap-1 overflow-hidden border-b border-white/10 py-3 text-gray-100 ltr:pr-2 rtl:pl-2"
  29. >
  30. <div class="flex-1 truncate text-sm">
  31. <span>#{{ number }}</span>
  32. <span
  33. class="mb-1 line-clamp-3 whitespace-normal text-lg font-bold leading-5"
  34. >
  35. {{ title }}
  36. </span>
  37. </div>
  38. </div>
  39. </div>
  40. </CommonLink>
  41. </div>
  42. </CommonDialog>
  43. </template>