github.ts 812 B

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