ui(server): fix reinstall_failed
conflict state
This commit is contained in:
parent
c74314d2ab
commit
fbdac5b63f
2 changed files with 9 additions and 3 deletions
8
resources/scripts/api/server/types.d.ts
vendored
8
resources/scripts/api/server/types.d.ts
vendored
|
@ -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 {
|
||||
uuid: string;
|
||||
|
|
|
@ -12,7 +12,7 @@ export default () => {
|
|||
(state) => state.server.data?.isNodeUnderMaintenance || false
|
||||
);
|
||||
|
||||
return status === 'installing' || status === 'install_failed' ? (
|
||||
return status === 'installing' || status === 'install_failed' || status === 'reinstall_failed' ? (
|
||||
<ScreenBlock
|
||||
title={'Running Installer'}
|
||||
image={ServerInstallSvg}
|
||||
|
@ -36,7 +36,7 @@ export default () => {
|
|||
image={ServerRestoreSvg}
|
||||
message={
|
||||
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.'
|
||||
}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue