ticket-article-attachment.ts 760 B

1234567891011121314151617181920212223
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { useApplicationStore } from '#shared/stores/application.ts'
  3. import { TicketSidebarScreenType } from '#desktop/pages/ticket/types/sidebar.ts'
  4. import TicketSidebarAttachment from '../TicketSidebarAttachment/TicketSidebarAttachment.vue'
  5. import type { TicketSidebarPlugin } from './types.ts'
  6. export default <TicketSidebarPlugin>{
  7. title: __('Attachments'),
  8. component: TicketSidebarAttachment,
  9. permissions: ['ticket.agent', 'ticket.customer'],
  10. screens: [TicketSidebarScreenType.TicketDetailView],
  11. icon: 'paperclip',
  12. order: 7000,
  13. available: () => {
  14. const { config } = useApplicationStore()
  15. return config.ui_ticket_zoom_sidebar_article_attachments
  16. },
  17. }