removing save/restore session: confusing and maybe dangerous

This commit is contained in:
Sebastian 2022-09-25 11:33:19 -03:00
parent 3ce27caf15
commit 79baa20584
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
2 changed files with 7 additions and 7 deletions

View File

@ -177,7 +177,7 @@ export function Sidebar({ mobile }: Props): VNode {
<span class="menu-item-label"><Translate>Truth Paying</Translate></span>
</div>
</li> */}
<li>
{/* <li>
<div class="buttons ml-4">
<button
class="button is-primary is-right"
@ -186,7 +186,7 @@ export function Sidebar({ mobile }: Props): VNode {
Save backup session
</button>
</div>
</li>
</li> */}
</Fragment>
) : (
reducer.currentReducerState?.reducer_type === "recovery" && (
@ -265,7 +265,7 @@ export function Sidebar({ mobile }: Props): VNode {
</span>
</div>
</li>
<li>
{/* <li>
<div class="buttons ml-4">
<button
class="button is-primary is-right"
@ -274,7 +274,7 @@ export function Sidebar({ mobile }: Props): VNode {
Save recovery session
</button>
</div>
</li>
</li> */}
</Fragment>
)
)}
@ -285,7 +285,7 @@ export function Sidebar({ mobile }: Props): VNode {
class="button is-danger is-right"
onClick={() => reducer.reset()}
>
Reset session
Start again
</button>
</div>
</li>

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>