mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-04 11:20:53 +01:00
Fix extension point "main.route" which was broken because the index links were no longer provided. This broke the activity plugin and maybe some other plugins too.
This commit is contained in:
2
gradle/changelog/fix_main_route.yaml
Normal file
2
gradle/changelog/fix_main_route.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Fix extension point "main.route"
|
||||
@@ -60,7 +60,7 @@ const App: FC = () => {
|
||||
} else if (error) {
|
||||
content = <ErrorPage title={t("app.error.title")} subtitle={t("app.error.subtitle")} error={error} />;
|
||||
} else if (me) {
|
||||
content = <Main authenticated={authenticated} me={me} />;
|
||||
content = <Main authenticated={authenticated} me={me} links={index._links} />;
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
import React, { FC } from "react";
|
||||
|
||||
import { Redirect, Route, Switch } from "react-router-dom";
|
||||
import { Me } from "@scm-manager/ui-types";
|
||||
import { Links, Me } from "@scm-manager/ui-types";
|
||||
|
||||
import Overview from "../repos/containers/Overview";
|
||||
import Users from "../users/containers/Users";
|
||||
@@ -55,6 +55,7 @@ import ExternalError from "./ExternalError";
|
||||
type Props = {
|
||||
me: Me;
|
||||
authenticated?: boolean;
|
||||
links: Links;
|
||||
};
|
||||
|
||||
const Main: FC<Props> = props => {
|
||||
|
||||
Reference in New Issue
Block a user