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:
Eduard Heimbuch
2021-12-16 15:47:01 +01:00
parent e70e860e07
commit af35ab5ff8
3 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
- type: fixed
description: Fix extension point "main.route"

View File

@@ -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 (

View File

@@ -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 => {