useTicketCreate.ts 411 B

1234567891011121314
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import { computed } from 'vue'
  3. import { useApplicationStore } from '@shared/stores/application'
  4. export const useTicketCreate = () => {
  5. const application = useApplicationStore()
  6. const ticketCreateEnabled = computed(() => {
  7. return application.config.customer_ticket_create as boolean
  8. })
  9. return { ticketCreateEnabled }
  10. }