Fix repository create route from namespace overview page (#1602)

This commit is contained in:
Eduard Heimbuch
2021-03-23 11:51:47 +01:00
committed by GitHub
parent e132aab7c4
commit 97bad3e3a5
3 changed files with 6 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ type Props = {
currentGroup: string;
groups?: string[];
link: string;
createLink?: string;
groupSelected: (namespace: string) => void;
label?: string;
testId?: string;
@@ -47,6 +48,7 @@ const OverviewPageActions: FC<Props> = ({
currentGroup,
showCreateButton,
link: inputLink,
createLink,
groupSelected,
label,
testId,
@@ -72,7 +74,7 @@ const OverviewPageActions: FC<Props> = ({
if (showCreateButton) {
return (
<div className={classNames("input-button", "control", "column")}>
<Button label={label} link={`${link}create`} color="primary" />
<Button label={label} link={createLink || `${link}create`} color="primary" />
</div>
);
}