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:
parent
c6505a6647
commit
bb680ef20a
4 changed files with 49 additions and 36 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue