CommonTicketCreateLink.vue 555 B

123456789101112131415161718
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { useTicketCreateView } from '#shared/entities/ticket/composables/useTicketCreateView.ts'
  4. const { ticketCreateEnabled } = useTicketCreateView()
  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>