showing restore and save, but removing from the ending state

This commit is contained in:
Sebastian 2022-09-26 09:24:05 -03:00
parent 50a1308ce2
commit 93dbf2c2c9
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
2 changed files with 28 additions and 22 deletions

View File

@ -177,16 +177,19 @@ export function Sidebar({ mobile }: Props): VNode {
<span class="menu-item-label"><Translate>Truth Paying</Translate></span> <span class="menu-item-label"><Translate>Truth Paying</Translate></span>
</div> </div>
</li> */} </li> */}
{/* <li> {reducer.currentReducerState.backup_state !==
<div class="buttons ml-4"> BackupStates.BackupFinished && (
<button <li>
class="button is-primary is-right" <div class="buttons ml-4">
onClick={saveSession} <button
> class="button is-primary is-right"
Save backup session onClick={saveSession}
</button> >
</div> Save backup session
</li> */} </button>
</div>
</li>
)}
</Fragment> </Fragment>
) : ( ) : (
reducer.currentReducerState?.reducer_type === "recovery" && ( reducer.currentReducerState?.reducer_type === "recovery" && (
@ -265,16 +268,19 @@ export function Sidebar({ mobile }: Props): VNode {
</span> </span>
</div> </div>
</li> </li>
{/* <li> {reducer.currentReducerState.recovery_state !==
<div class="buttons ml-4"> RecoveryStates.RecoveryFinished && (
<button <li>
class="button is-primary is-right" <div class="buttons ml-4">
onClick={saveSession} <button
> class="button is-primary is-right"
Save recovery session onClick={saveSession}
</button> >
</div> Save recovery session
</li> */} </button>
</div>
</li>
)}
</Fragment> </Fragment>
) )
)} )}

View File

@ -50,14 +50,14 @@ export function StartScreen(): VNode {
<span>Recover a secret</span> <span>Recover a secret</span>
</button> </button>
{/* <FileButton <FileButton
label="Restore a session" label="Restore a session"
onChange={(content) => { onChange={(content) => {
if (content?.type === "application/json") { if (content?.type === "application/json") {
reducer.importState(content.content); reducer.importState(content.content);
} }
}} }}
/> */} />
{/* <button class="button"> {/* <button class="button">
<div class="icon"><i class="mdi mdi-file" /></div> <div class="icon"><i class="mdi mdi-file" /></div>