idoit.ts 870 B

123456789101112131415161718192021
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { useApplicationStore } from '#shared/stores/application.ts'
  3. import TicketSidebarIdoit from '#desktop/pages/ticket/components/TicketSidebar/TicketSidebarExternalReferences/TicketSidebarIdoit/TicketSidebarIdoit.vue'
  4. import { TicketSidebarScreenType } from '#desktop/pages/ticket/types/sidebar.ts'
  5. import type { TicketSidebarPlugin } from './types.ts'
  6. export default <TicketSidebarPlugin>{
  7. title: __('i-doit'),
  8. component: TicketSidebarIdoit,
  9. permissions: ['ticket.agent'],
  10. screens: [
  11. TicketSidebarScreenType.TicketDetailView,
  12. TicketSidebarScreenType.TicketCreate,
  13. ],
  14. icon: 'i-doit-logo', // icon does not exist underlying cmp will use it as a base to get light and dark icon name
  15. order: 6000,
  16. available: () => useApplicationStore().config.idoit_integration,
  17. }