From fbdac5b63f4222588c0ba8cfe85ffca38872daf1 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Tue, 17 Jan 2023 15:21:31 -0700 Subject: [PATCH] ui(server): fix `reinstall_failed` conflict state --- resources/scripts/api/server/types.d.ts | 8 +++++++- .../scripts/components/server/ConflictStateRenderer.tsx | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/resources/scripts/api/server/types.d.ts b/resources/scripts/api/server/types.d.ts index 7e3e540c0..0816d7e81 100644 --- a/resources/scripts/api/server/types.d.ts +++ b/resources/scripts/api/server/types.d.ts @@ -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; diff --git a/resources/scripts/components/server/ConflictStateRenderer.tsx b/resources/scripts/components/server/ConflictStateRenderer.tsx index 95e70bbaa..d090b731c 100644 --- a/resources/scripts/components/server/ConflictStateRenderer.tsx +++ b/resources/scripts/components/server/ConflictStateRenderer.tsx @@ -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' ? ( { 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.' } />