note.ts 664 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { TicketArticleActionPlugin, TicketArticleType } from './types.ts'
  3. const actionPlugin: TicketArticleActionPlugin = {
  4. order: 100,
  5. addTypes(ticket, { config }) {
  6. const type: TicketArticleType = {
  7. apps: ['mobile'],
  8. value: 'note',
  9. label: __('Note'),
  10. icon: 'note',
  11. fields: {
  12. attachments: {},
  13. body: {
  14. required: true,
  15. },
  16. },
  17. view: {
  18. agent: ['change'],
  19. },
  20. internal: !!config.ui_ticket_zoom_article_note_new_internal,
  21. }
  22. return [type]
  23. },
  24. }
  25. export default actionPlugin