mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09: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
|
@ -3,7 +3,7 @@ import _ from 'lodash';
|
|||
|
||||
import { isoDateFromTimestamp } from '@/portainer/filters/filters';
|
||||
import { isBE } from '@/react/portainer/feature-flags/feature-flags.service';
|
||||
import { cleanGitRepoUrl } from '@/react/portainer/gitops/utils';
|
||||
import { GitCommitLink } from '@/react/portainer/gitops/GitCommitLink';
|
||||
|
||||
import { buildNameColumn } from '@@/datatables/buildNameColumn';
|
||||
import { Link } from '@@/Link';
|
||||
|
@ -145,15 +145,10 @@ export const columns = _.compact([
|
|||
if (item.GitConfig) {
|
||||
return (
|
||||
<div className="text-center">
|
||||
<a
|
||||
target="_blank"
|
||||
href={`${cleanGitRepoUrl(item.GitConfig.URL)}/commit/${
|
||||
item.GitConfig.ConfigHash
|
||||
}`}
|
||||
rel="noreferrer"
|
||||
>
|
||||
{item.GitConfig.ConfigHash.slice(0, 7)}
|
||||
</a>
|
||||
<GitCommitLink
|
||||
baseURL={item.GitConfig.URL}
|
||||
commitHash={item.GitConfig.ConfigHash}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue