CommonTicketCreateLink.vue 543 B

123456789101112131415161718
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { useTicketCreate } from '#shared/entities/ticket/composables/useTicketCreate.ts'
  4. const { ticketCreateEnabled } = useTicketCreate()
  5. </script>
  6. <template>
  7. <div
  8. v-if="ticketCreateEnabled"
  9. class="flex cursor-pointer items-center justify-end"
  10. >
  11. <CommonLink link="/tickets/create" :aria-label="$t('Create new ticket')">
  12. <CommonIcon name="add" size="small" decorative />
  13. </CommonLink>
  14. </div>
  15. </template>