ui(server): fix reinstall_failed conflict state

This commit is contained in:
Matthew Penner 2023-01-17 15:21:31 -07:00
parent c74314d2ab
commit fbdac5b63f
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,10 @@
export type ServerStatus = 'installing' | 'install_failed' | 'suspended' | 'restoring_backup' | null; export type ServerStatus =
| 'installing'
| 'install_failed'
| 'reinstall_failed'
| 'suspended'
| 'restoring_backup'
| null;
export interface ServerBackup { export interface ServerBackup {
uuid: string; uuid: string;

View file

@ -12,7 +12,7 @@ export default () => {
(state) => state.server.data?.isNodeUnderMaintenance || false (state) => state.server.data?.isNodeUnderMaintenance || false
); );
return status === 'installing' || status === 'install_failed' ? ( return status === 'installing' || status === 'install_failed' || status === 'reinstall_failed' ? (
<ScreenBlock <ScreenBlock
title={'Running Installer'} title={'Running Installer'}
image={ServerInstallSvg} image={ServerInstallSvg}
@ -36,7 +36,7 @@ export default () => {
image={ServerRestoreSvg} image={ServerRestoreSvg}
message={ message={
isTransferring isTransferring
? 'Your server is being transfered to a new node, please check back later.' ? 'Your server is being transferred to a new node, please check back later.'
: 'Your server is currently being restored from a backup, please check back in a few minutes.' : 'Your server is currently being restored from a backup, please check back in a few minutes.'
} }
/> />