phone.ts 657 B

123456789101112131415161718192021222324252627282930
  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() {
  6. const type: TicketArticleType = {
  7. apps: ['mobile', 'desktop'],
  8. value: 'phone',
  9. label: __('Phone'),
  10. buttonLabel: __('Add phone call'),
  11. icon: 'phone',
  12. fields: {
  13. attachments: {},
  14. body: {
  15. required: true,
  16. },
  17. },
  18. view: {
  19. agent: ['change'],
  20. },
  21. internal: false,
  22. }
  23. return [type]
  24. },
  25. }
  26. export default actionPlugin