removing save/restore session: confusing and maybe dangerous
This commit is contained in:
parent
3ce27caf15
commit
79baa20584
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user