mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(gitops): clean trailing slash [EE-6346] (#10777)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
a2d6d6002c
commit
4e8b371fb7
4 changed files with 18 additions and 16 deletions
|
@ -3,12 +3,12 @@ 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 { buildNameColumn } from '@@/datatables/buildNameColumn';
|
||||
import { Link } from '@@/Link';
|
||||
|
||||
import { StatusType } from '../../types';
|
||||
import { removeTrailingGitExtension } from '../../utils';
|
||||
|
||||
import { EdgeStackStatus } from './EdgeStacksStatus';
|
||||
import { DecoratedEdgeStack } from './types';
|
||||
|
@ -147,9 +147,9 @@ export const columns = _.compact([
|
|||
<div className="text-center">
|
||||
<a
|
||||
target="_blank"
|
||||
href={`${removeTrailingGitExtension(
|
||||
item.GitConfig.URL
|
||||
)}/commit/${item.GitConfig.ConfigHash}`}
|
||||
href={`${cleanGitRepoUrl(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