1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

fix(git): incorrect git commit url for bitbucket [EE-6446] (#10855)

This commit is contained in:
Oscar Zhou 2024-01-12 08:22:50 +13:00 committed by GitHub
parent c6505a6647
commit bb680ef20a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 36 deletions

View file

@ -9,7 +9,7 @@ import UpToDate from '@/assets/ico/icon_up-to-date.svg?c';
import { isoDateFromTimestamp } from '@/portainer/filters/filters';
import { isBE } from '@/react/portainer/feature-flags/feature-flags.service';
import { getDashboardRoute } from '@/react/portainer/environments/utils';
import { cleanGitRepoUrl } from '@/react/portainer/gitops/utils';
import { GitCommitLink } from '@/react/portainer/gitops/GitCommitLink';
import { Button } from '@@/buttons';
import { Icon } from '@@/Icon';
@ -187,15 +187,10 @@ function TargetVersionCell({
<>
{row.original.TargetCommitHash ? (
<div>
<a
href={`${cleanGitRepoUrl(row.original.GitConfigURL)}/commit/${
row.original.TargetCommitHash
}`}
target="_blank"
rel="noreferrer"
>
{value}
</a>
<GitCommitLink
baseURL={row.original.GitConfigURL}
commitHash={row.original.TargetCommitHash}
/>
</div>
) : (
<div>{value}</div>
@ -238,15 +233,10 @@ function DeployedVersionCell({
{row.original.TargetCommitHash ? (
<div>
{statusIcon}
<a
href={`${cleanGitRepoUrl(row.original.GitConfigURL)}/commit/${
row.original.TargetCommitHash
}`}
target="_blank"
rel="noreferrer"
>
{value}
</a>
<GitCommitLink
baseURL={row.original.GitConfigURL}
commitHash={row.original.TargetCommitHash}
/>
</div>
) : (
<div>