TicketSharedDraftZoom.vue 779 B

123456789101112131415161718192021222324252627
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import type { FormRef } from '#shared/components/Form/types.ts'
  4. import CommonButton from '#desktop/components/CommonButton/CommonButton.vue'
  5. import { useTicketSharedDraft } from '#desktop/pages/ticket/composables/useTicketSharedDraft.ts'
  6. defineProps<{
  7. sharedDraftId?: string | null
  8. form?: FormRef
  9. }>()
  10. const { openSharedDraftFlyout } = useTicketSharedDraft()
  11. </script>
  12. <template>
  13. <div class="flex items-center gap-2.5">
  14. <CommonButton
  15. prefix-icon="template"
  16. size="large"
  17. variant="tertiary"
  18. @click="openSharedDraftFlyout('detail-view', sharedDraftId, form)"
  19. >{{ $t('Draft Available') }}</CommonButton
  20. >
  21. </div>
  22. </template>