From bbde2a9bb9fcb8d008b67a4382b15864a9ef2e9b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 3 Oct 2022 18:26:37 -0300 Subject: [PATCH] fix: showing start again in the last main screen --- .../src/components/menu/SideBar.tsx | 41 +++++++++++++------ .../src/pages/home/BackupFinishedScreen.tsx | 17 ++++++++ .../src/pages/home/RecoveryFinishedScreen.tsx | 19 +++++++++ 3 files changed, 65 insertions(+), 12 deletions(-) diff --git a/packages/anastasis-webui/src/components/menu/SideBar.tsx b/packages/anastasis-webui/src/components/menu/SideBar.tsx index 91b49f9ce..51e854944 100644 --- a/packages/anastasis-webui/src/components/menu/SideBar.tsx +++ b/packages/anastasis-webui/src/components/menu/SideBar.tsx @@ -190,6 +190,19 @@ export function Sidebar({ mobile }: Props): VNode { )} + {reducer.currentReducerState.backup_state !== + BackupStates.BackupFinished && ( +
  • +
    + +
    +
  • + )} ) : ( reducer.currentReducerState?.reducer_type === "recovery" && ( @@ -281,21 +294,25 @@ export function Sidebar({ mobile }: Props): VNode { )} + {reducer.currentReducerState.recovery_state === + RecoveryStates.RecoveryFinished ? ( + + ) : ( +
  • +
    + +
    +
  • + )}
    ) )} - {reducer.currentReducerState && ( -
  • -
    - -
    -
  • - )} + {/*
  • diff --git a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx index d69a0af38..9b63c9887 100644 --- a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx @@ -57,6 +57,23 @@ export function BackupFinishedScreen(): VNode {
    ); })} +
    +

    +

    + +
    +

    +
    )} diff --git a/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.tsx b/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.tsx index c8615da14..62ac410a2 100644 --- a/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.tsx @@ -95,11 +95,30 @@ export function RecoveryFinishedScreen(): VNode { Download content + {plainText ? (
    ) : undefined} + +
    +

    +

    + +
    +

    +
    ); }