mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-03 20:15:52 +01:00
Fix repository create route from namespace overview page (#1602)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user