mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(gitops): correct commit hash link [EE-6346] (#10723)
This commit is contained in:
parent
eb23818f83
commit
974378c9b5
3 changed files with 16 additions and 3 deletions
|
@ -15,6 +15,7 @@ import { Icon } from '@@/Icon';
|
|||
import { Link } from '@@/Link';
|
||||
|
||||
import { DeploymentStatus, EdgeStackStatus, StatusType } from '../../types';
|
||||
import { removeTrailingGitExtension } from '../../utils';
|
||||
|
||||
import { EnvironmentActions } from './EnvironmentActions';
|
||||
import { ActionStatus } from './ActionStatus';
|
||||
|
@ -187,7 +188,9 @@ function TargetVersionCell({
|
|||
{row.original.TargetCommitHash ? (
|
||||
<div>
|
||||
<a
|
||||
href={`${row.original.GitConfigURL}/commit/${row.original.TargetCommitHash}`}
|
||||
href={`${removeTrailingGitExtension(
|
||||
row.original.GitConfigURL
|
||||
)}/commit/${row.original.TargetCommitHash}`}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
|
@ -236,7 +239,9 @@ function DeployedVersionCell({
|
|||
<div>
|
||||
{statusIcon}
|
||||
<a
|
||||
href={`${row.original.GitConfigURL}/commit/${row.original.TargetCommitHash}`}
|
||||
href={`${removeTrailingGitExtension(
|
||||
row.original.GitConfigURL
|
||||
)}/commit/${row.original.TargetCommitHash}`}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue