Show correct server suspended image; closes #3092
This commit is contained in:
parent
c8ecbe6e79
commit
3171b8d559
1 changed files with 13 additions and 5 deletions
|
@ -31,6 +31,7 @@ import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
|
||||||
import RequireServerPermission from '@/hoc/RequireServerPermission';
|
import RequireServerPermission from '@/hoc/RequireServerPermission';
|
||||||
import ServerInstallSvg from '@/assets/images/server_installing.svg';
|
import ServerInstallSvg from '@/assets/images/server_installing.svg';
|
||||||
import ServerRestoreSvg from '@/assets/images/server_restore.svg';
|
import ServerRestoreSvg from '@/assets/images/server_restore.svg';
|
||||||
|
import ServerErrorSvg from '@/assets/images/server_error.svg';
|
||||||
|
|
||||||
const ConflictStateRenderer = () => {
|
const ConflictStateRenderer = () => {
|
||||||
const status = ServerContext.useStoreState(state => state.server.data?.status || null);
|
const status = ServerContext.useStoreState(state => state.server.data?.status || null);
|
||||||
|
@ -44,6 +45,13 @@ const ConflictStateRenderer = () => {
|
||||||
message={'Your server should be ready soon, please try again in a few minutes.'}
|
message={'Your server should be ready soon, please try again in a few minutes.'}
|
||||||
/>
|
/>
|
||||||
:
|
:
|
||||||
|
status === 'suspended' ?
|
||||||
|
<ScreenBlock
|
||||||
|
title={'Server Suspended'}
|
||||||
|
image={ServerErrorSvg}
|
||||||
|
message={'This server is suspended and cannot be accessed.'}
|
||||||
|
/>
|
||||||
|
:
|
||||||
<ScreenBlock
|
<ScreenBlock
|
||||||
title={isTransferring ? 'Transferring' : 'Restoring from Backup'}
|
title={isTransferring ? 'Transferring' : 'Restoring from Backup'}
|
||||||
image={ServerRestoreSvg}
|
image={ServerRestoreSvg}
|
||||||
|
|
Loading…
Reference in a new issue