gitlab.ts 780 B

123456789101112131415161718192021
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { useApplicationStore } from '#shared/stores/application.ts'
  3. import TicketSidebarGitLab from '#desktop/pages/ticket/components/TicketSidebar/TicketSidebarExternalIssueTracker/TicketSidebarGitLab/TicketSidebarGitLab.vue'
  4. import { TicketSidebarScreenType } from '#desktop/pages/ticket/types/sidebar.ts'
  5. import type { TicketSidebarPlugin } from './types.ts'
  6. export default <TicketSidebarPlugin>{
  7. title: __('GitLab'),
  8. component: TicketSidebarGitLab,
  9. permissions: ['ticket.agent'],
  10. screens: [
  11. TicketSidebarScreenType.TicketDetailView,
  12. TicketSidebarScreenType.TicketCreate,
  13. ],
  14. icon: 'gitlab',
  15. order: 5000,
  16. available: () => useApplicationStore().config.gitlab_integration,
  17. }