mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +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
|
@ -8,6 +8,7 @@ import { buildNameColumn } from '@@/datatables/buildNameColumn';
|
|||
import { Link } from '@@/Link';
|
||||
|
||||
import { StatusType } from '../../types';
|
||||
import { removeTrailingGitExtension } from '../../utils';
|
||||
|
||||
import { EdgeStackStatus } from './EdgeStacksStatus';
|
||||
import { DecoratedEdgeStack } from './types';
|
||||
|
@ -146,7 +147,9 @@ export const columns = _.compact([
|
|||
<div className="text-center">
|
||||
<a
|
||||
target="_blank"
|
||||
href={`${item.GitConfig.URL}/commit/${item.GitConfig.ConfigHash}`}
|
||||
href={`${removeTrailingGitExtension(
|
||||
item.GitConfig.URL
|
||||
)}/commit/${item.GitConfig.ConfigHash}`}
|
||||
rel="noreferrer"
|
||||
>
|
||||
{item.GitConfig.ConfigHash.slice(0, 7)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue