mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 09:50:08 +00:00
This commit is contained in:
parent
b7377a1080
commit
b96a3aa401
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { DropDownMenu, Tooltip } from 'argo-ui';
|
||||
import * as React from 'react';
|
||||
const GitUrlParse = require('git-url-parse');
|
||||
|
||||
import { Cluster } from '../../../shared/components';
|
||||
import { Consumer } from '../../../shared/context';
|
||||
|
|
@ -10,7 +11,7 @@ import * as AppUtils from '../utils';
|
|||
require('./applications-table.scss');
|
||||
|
||||
function shortRepo(repo: string) {
|
||||
const url = new URL(repo);
|
||||
const url = GitUrlParse(repo);
|
||||
return <Tooltip content={repo}><span>{url.pathname.slice(1)}</span></Tooltip>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue