mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 02:55:56 +01:00
WIP: Reworking ErrorPage/ErrorNotification
This commit is contained in:
@@ -12,7 +12,7 @@ import { Route, Switch } from "react-router-dom";
|
||||
import type { Repository } from "@scm-manager/ui-types";
|
||||
|
||||
import {
|
||||
ErrorPage,
|
||||
CollapsibleErrorPage,
|
||||
Loading,
|
||||
Navigation,
|
||||
SubNavigation,
|
||||
@@ -81,13 +81,16 @@ class RepositoryRoot extends React.Component<Props> {
|
||||
render() {
|
||||
const { loading, error, indexLinks, repository, t } = this.props;
|
||||
|
||||
// if (error) {
|
||||
// return <ErrorPage
|
||||
// title={t("repositoryRoot.errorTitle")}
|
||||
// subtitle={t("repositoryRoot.errorSubtitle")}
|
||||
// error={error}
|
||||
// />
|
||||
// }
|
||||
if (error) {
|
||||
return (
|
||||
<ErrorPage
|
||||
title={t("repositoryRoot.errorTitle")}
|
||||
subtitle={t("repositoryRoot.errorSubtitle")}
|
||||
error={error}
|
||||
/>
|
||||
<CollapsibleErrorPage title={t("repositoryRoot.errorTitle")} error={error} />
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user