aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-09-25 11:33:19 -0300
committerSebastian <sebasjm@gmail.com>2022-09-25 11:33:19 -0300
commit79baa20584010c8e44e772696670d00f4811b44c (patch)
tree04f7258788b7dbfe4e80ad203969277ecf42ed9e
parent3ce27caf1535c02e4549f298f0a3c5b31b70aeac (diff)
removing save/restore session: confusing and maybe dangerous
-rw-r--r--packages/anastasis-webui/src/components/menu/SideBar.tsx10
-rw-r--r--packages/anastasis-webui/src/pages/home/StartScreen.tsx4
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/anastasis-webui/src/components/menu/SideBar.tsx b/packages/anastasis-webui/src/components/menu/SideBar.tsx
index ee394da83..4c1d085ee 100644
--- a/packages/anastasis-webui/src/components/menu/SideBar.tsx
+++ b/packages/anastasis-webui/src/components/menu/SideBar.tsx
@@ -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>
diff --git a/packages/anastasis-webui/src/pages/home/StartScreen.tsx b/packages/anastasis-webui/src/pages/home/StartScreen.tsx
index 03399cfba..b9c4e57b7 100644
--- a/packages/anastasis-webui/src/pages/home/StartScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/StartScreen.tsx
@@ -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>