From 93dbf2c2c99fa5225f20b3b78593b97b8115668e Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 26 Sep 2022 09:24:05 -0300 Subject: showing restore and save, but removing from the ending state --- .../src/components/menu/SideBar.tsx | 46 ++++++++++++---------- .../anastasis-webui/src/pages/home/StartScreen.tsx | 4 +- 2 files changed, 28 insertions(+), 22 deletions(-) diff --git a/packages/anastasis-webui/src/components/menu/SideBar.tsx b/packages/anastasis-webui/src/components/menu/SideBar.tsx index 4c1d085ee..91b49f9ce 100644 --- a/packages/anastasis-webui/src/components/menu/SideBar.tsx +++ b/packages/anastasis-webui/src/components/menu/SideBar.tsx @@ -177,16 +177,19 @@ export function Sidebar({ mobile }: Props): VNode { Truth Paying */} - {/*
  • -
    - -
    -
  • */} + {reducer.currentReducerState.backup_state !== + BackupStates.BackupFinished && ( +
  • +
    + +
    +
  • + )} ) : ( reducer.currentReducerState?.reducer_type === "recovery" && ( @@ -265,16 +268,19 @@ export function Sidebar({ mobile }: Props): VNode { - {/*
  • -
    - -
    -
  • */} + {reducer.currentReducerState.recovery_state !== + RecoveryStates.RecoveryFinished && ( +
  • +
    + +
    +
  • + )} ) )} diff --git a/packages/anastasis-webui/src/pages/home/StartScreen.tsx b/packages/anastasis-webui/src/pages/home/StartScreen.tsx index b9c4e57b7..03399cfba 100644 --- a/packages/anastasis-webui/src/pages/home/StartScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/StartScreen.tsx @@ -50,14 +50,14 @@ export function StartScreen(): VNode { Recover a secret - {/* { if (content?.type === "application/json") { reducer.importState(content.content); } }} - /> */} + /> {/*