showing restore and save, but removing from the ending state
This commit is contained in:
parent
50a1308ce2
commit
93dbf2c2c9
@ -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>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user