mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-26 09:19:12 +01:00
Add header to toplevel error boundary (#1613)
In the event of a reload due to a change of focus, possible error boundaries were displayed without the SCM-Manager header. This change complements the appropriate header.
This commit is contained in:
2
gradle/changelog/missing_header.yaml
Normal file
2
gradle/changelog/missing_header.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Add header to toplevel error boundary ([#1613](https://github.com/scm-manager/scm-manager/pull/1613))
|
||||
@@ -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 <IndexErrorPage error={error} />;
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<IndexErrorPage error={error} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
if (isLoading || !data) {
|
||||
return <Loading />;
|
||||
|
||||
Reference in New Issue
Block a user