diff --git a/gradle/changelog/repo_create_route.yaml b/gradle/changelog/repo_create_route.yaml new file mode 100644 index 0000000000..eeaafe2383 --- /dev/null +++ b/gradle/changelog/repo_create_route.yaml @@ -0,0 +1,2 @@ +- type: fixed + description: Fix repository creation route from repository namespace overview page ([#1602](https://github.com/scm-manager/scm-manager/pull/1602)) diff --git a/scm-ui/ui-components/src/OverviewPageActions.tsx b/scm-ui/ui-components/src/OverviewPageActions.tsx index d5d9ee99d9..2aef455188 100644 --- a/scm-ui/ui-components/src/OverviewPageActions.tsx +++ b/scm-ui/ui-components/src/OverviewPageActions.tsx @@ -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 = ({ currentGroup, showCreateButton, link: inputLink, + createLink, groupSelected, label, testId, @@ -72,7 +74,7 @@ const OverviewPageActions: FC = ({ if (showCreateButton) { return (
-
); } diff --git a/scm-ui/ui-webapp/src/repos/containers/Overview.tsx b/scm-ui/ui-webapp/src/repos/containers/Overview.tsx index 735941d4f4..ba374fbae5 100644 --- a/scm-ui/ui-webapp/src/repos/containers/Overview.tsx +++ b/scm-ui/ui-webapp/src/repos/containers/Overview.tsx @@ -145,6 +145,7 @@ const Overview: FC = () => { groups={namespacesToRender} groupSelected={namespaceSelected} link={namespace ? `repos/${namespace}` : "repos"} + createLink="/repos/create" label={t("overview.createButton")} testId="repository-overview" searchPlaceholder={t("overview.searchRepository")}