Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: vcs info sidebar (#11572)

ecmadao05abb4a12d84
diff --git a/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue b/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue
index 84bd9dbf48..c7db7914bf 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue
@@ -1,32 +1,23 @@
<template>
<div
- v-if="issue.planEntity?.vcsSource && vcsConnector"
+ v-if="issue.planEntity?.vcsSource?.pullRequestUrl"
class="text-sm text-control-light flex space-x-1 items-center"
>
<VCSIcon :type="issue.planEntity?.vcsSource.vcsType" />
- <a
- :href="issue.planEntity?.vcsSource.pullRequestUrl"
- target="_blank"
- class="normal-link"
- >
- {{ `${vcsConnector.branch}@${vcsConnector.fullPath}` }}
- </a>
- </div>
- <div
- v-if="
- issue.planEntity?.vcsSource?.pullRequestUrl !== undefined &&
- vcsProvider === undefined
- "
- class="text-sm text-control-light flex space-x-1 items-center"
- >
- <VCSIcon :type="issue.planEntity?.vcsSource.vcsType" />
- <a
- :href="issue.planEntity?.vcsSource.pullRequestUrl"
- target="_blank"
- class="normal-link"
- >
- {{ issue.planEntity?.vcsSource.pullRequestUrl }}
- </a>
+ <EllipsisText>
+ <a
+ :href="issue.planEntity?.vcsSource.pullRequestUrl"
+ target="_blank"
+ class="normal-link"
+ >
+ <span v-if="vcsConnector">
+ {{ `${vcsConnector.branch}@${vcsConnector.fullPath}` }}
+ </span>
+ <span v-else>
+ {{ issue.planEntity?.vcsSource?.pullRequestUrl }}
+ </span>
+ </a>
+ </EllipsisText>
</div>
</template>
@@ -86,16 +77,6 @@ const vcsConnector = computed(() => {
);
});
-const vcsProvider = computed(() => {
- if (!vcsConnector.value) {
- return;
- }
- if (!hasGetVCSProviderPermission.value) {
- return;
- }
- return vcsProviderStore.getVCSByName(vcsConnector.value.vcsProvider);
-});
-
defineExpose({
shown: computed(() => {
return false;