shared-draft-start.ts 618 B

1234567891011121314151617
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { TicketSidebarScreenType } from '#desktop/pages/ticket/types/sidebar.ts'
  3. import TicketSidebarSharedDraftStart from '../TicketSidebarSharedDraftStart/TicketSidebarSharedDraftStart.vue'
  4. import type { TicketSidebarPlugin } from './types.ts'
  5. export default <TicketSidebarPlugin>{
  6. title: __('Shared Drafts'),
  7. component: TicketSidebarSharedDraftStart,
  8. permissions: ['ticket.agent'],
  9. screens: [TicketSidebarScreenType.TicketCreate],
  10. icon: 'file-text',
  11. order: 3000,
  12. available: (context) => !!context.formValues.group_id,
  13. }