1234567891011121314151617181920212223 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import { useApplicationStore } from '#shared/stores/application.ts'
- import { TicketSidebarScreenType } from '#desktop/pages/ticket/types/sidebar.ts'
- import TicketSidebarAttachment from '../TicketSidebarAttachment/TicketSidebarAttachment.vue'
- import type { TicketSidebarPlugin } from './types.ts'
- export default <TicketSidebarPlugin>{
- title: __('Attachments'),
- component: TicketSidebarAttachment,
- permissions: ['ticket.agent', 'ticket.customer'],
- screens: [TicketSidebarScreenType.TicketDetailView],
- icon: 'paperclip',
- order: 6000,
- available: () => {
- const { config } = useApplicationStore()
- return config.ui_ticket_zoom_sidebar_article_attachments
- },
- }
|