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

View File

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