useTicketArticleReply.ts 402 B

12345678910111213
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { computed } from 'vue'
  3. import { useTicketInformation } from '#desktop/pages/ticket/composables/useTicketInformation.ts'
  4. export const useTicketArticleReply = () => {
  5. const { ticket } = useTicketInformation()
  6. const canUpdateTicket = computed(() => !!ticket.value?.policy.update)
  7. return { canUpdateTicket }
  8. }