Don't break the entire server UI for a broken console, ref #3121
This commit is contained in:
parent
f58db890df
commit
bc87a9cf7d
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@ import ServerDetailsBlock from '@/components/server/ServerDetailsBlock';
|
||||||
import isEqual from 'react-fast-compare';
|
import isEqual from 'react-fast-compare';
|
||||||
import PowerControls from '@/components/server/PowerControls';
|
import PowerControls from '@/components/server/PowerControls';
|
||||||
import { EulaModalFeature } from '@feature/index';
|
import { EulaModalFeature } from '@feature/index';
|
||||||
|
import ErrorBoundary from '@/components/elements/ErrorBoundary';
|
||||||
|
|
||||||
export type PowerAction = 'start' | 'stop' | 'restart' | 'kill';
|
export type PowerAction = 'start' | 'stop' | 'restart' | 'kill';
|
||||||
|
|
||||||
|
@ -51,7 +52,9 @@ const ServerConsole = () => {
|
||||||
</div>
|
</div>
|
||||||
<div css={tw`w-full lg:w-3/4 mt-4 lg:mt-0 lg:pl-4`}>
|
<div css={tw`w-full lg:w-3/4 mt-4 lg:mt-0 lg:pl-4`}>
|
||||||
<SuspenseSpinner>
|
<SuspenseSpinner>
|
||||||
<ChunkedConsole/>
|
<ErrorBoundary>
|
||||||
|
<ChunkedConsole/>
|
||||||
|
</ErrorBoundary>
|
||||||
<ChunkedStatGraphs/>
|
<ChunkedStatGraphs/>
|
||||||
</SuspenseSpinner>
|
</SuspenseSpinner>
|
||||||
{eggFeatures.includes('eula') &&
|
{eggFeatures.includes('eula') &&
|
||||||
|
|
Loading…
Reference in a new issue