zammad/app/frontend/apps/mobile/components/CommonTicketCreateLink/CommonTicketCreateLink.vue
2026-01-02 15:41:09 +02:00

15 lines
544 B
Vue

<!-- Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/ -->
<script setup lang="ts">
import { useTicketCreateView } from '#shared/entities/ticket/composables/useTicketCreateView.ts'
const { ticketCreateEnabled } = useTicketCreateView()
</script>
<template>
<div v-if="ticketCreateEnabled" class="flex cursor-pointer items-center justify-end">
<CommonLink link="/tickets/create" :aria-label="$t('Create new ticket')">
<CommonIcon name="add" size="small" decorative />
</CommonLink>
</div>
</template>