diff --git a/gradle/changelog/missing_header.yaml b/gradle/changelog/missing_header.yaml new file mode 100644 index 0000000000..dc3b95456b --- /dev/null +++ b/gradle/changelog/missing_header.yaml @@ -0,0 +1,2 @@ +- type: fixed + description: Add header to toplevel error boundary ([#1613](https://github.com/scm-manager/scm-manager/pull/1613)) diff --git a/scm-ui/ui-webapp/src/containers/Index.tsx b/scm-ui/ui-webapp/src/containers/Index.tsx index e74704d81b..74ac89c02c 100644 --- a/scm-ui/ui-webapp/src/containers/Index.tsx +++ b/scm-ui/ui-webapp/src/containers/Index.tsx @@ -23,7 +23,7 @@ */ import React, { FC, useState } from "react"; import App from "./App"; -import { ErrorBoundary, Loading } from "@scm-manager/ui-components"; +import { ErrorBoundary, Loading, Header } from "@scm-manager/ui-components"; import PluginLoader from "./PluginLoader"; import ScrollToTop from "./ScrollToTop"; import IndexErrorPage from "./IndexErrorPage"; @@ -37,7 +37,12 @@ const Index: FC = () => { // TODO check componentDidUpdate method for anonymous user stuff if (error) { - return ; + return ( + <> +
+ + + ); } if (isLoading || !data) { return ;