split.ts 598 B

1234567891011121314151617181920212223
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import type { TicketArticleActionPlugin, TicketArticleAction } from './types'
  3. const actionPlugin: TicketArticleActionPlugin = {
  4. order: 700,
  5. addActions(ticket, article) {
  6. const action: TicketArticleAction = {
  7. apps: ['mobile'],
  8. label: __('Split'),
  9. name: 'split',
  10. icon: { mobile: 'mobile-split' },
  11. view: {
  12. agent: ['change'],
  13. },
  14. link: `/tickets/create?ticket_id=${ticket.id}&article_id=${article.id}`,
  15. }
  16. return [action]
  17. },
  18. }
  19. export default actionPlugin