36 lines
1.2 KiB
Vue
36 lines
1.2 KiB
Vue
<script setup lang="ts">
|
|
import TicketGitBranches from '@/components/tickets/detail/TicketGitBranches.vue';
|
|
import TicketGitPullRequests from '@/components/tickets/detail/TicketGitPullRequests.vue';
|
|
import { useLocalization } from '@/composables/useLocalization';
|
|
import type { TicketDetailGitProps } from '@/types/ticket-detail';
|
|
|
|
defineProps<TicketDetailGitProps>();
|
|
|
|
const { t } = useLocalization();
|
|
</script>
|
|
|
|
<template>
|
|
<section
|
|
id="ticket-git"
|
|
aria-labelledby="ticket-git-title"
|
|
class="wrap-anywhere flex min-w-0 scroll-mt-6 flex-col gap-4"
|
|
>
|
|
<h2 id="ticket-git-title" class="text-lg font-semibold">
|
|
{{ t('ticketDetail.git') }}
|
|
</h2>
|
|
|
|
<div class="grid min-w-0 gap-6">
|
|
<TicketGitBranches
|
|
:ticket="ticket"
|
|
:project="project"
|
|
:can-edit-ticket="canEditTicket"
|
|
:repository-branches="repositoryBranches"
|
|
:suggested-branch-name="suggestedBranchName"
|
|
/>
|
|
<TicketGitPullRequests
|
|
:repository-pull-requests="repositoryPullRequests"
|
|
/>
|
|
</div>
|
|
</section>
|
|
</template>
|