gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: showing restore and save, bu


From: gnunet
Subject: [taler-wallet-core] branch master updated: showing restore and save, but removing from the ending state
Date: Mon, 26 Sep 2022 14:24:37 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 93dbf2c2c showing restore and save, but removing from the ending state
93dbf2c2c is described below

commit 93dbf2c2c99fa5225f20b3b78593b97b8115668e
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Sep 26 09:24:05 2022 -0300

    showing restore and save, but removing from the ending state
---
 .../src/components/menu/SideBar.tsx                | 46 ++++++++++++----------
 .../anastasis-webui/src/pages/home/StartScreen.tsx |  4 +-
 2 files changed, 28 insertions(+), 22 deletions(-)

diff --git a/packages/anastasis-webui/src/components/menu/SideBar.tsx 
b/packages/anastasis-webui/src/components/menu/SideBar.tsx
index 4c1d085ee..91b49f9ce 100644
--- a/packages/anastasis-webui/src/components/menu/SideBar.tsx
+++ b/packages/anastasis-webui/src/components/menu/SideBar.tsx
@@ -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>
             )
           )}
diff --git a/packages/anastasis-webui/src/pages/home/StartScreen.tsx 
b/packages/anastasis-webui/src/pages/home/StartScreen.tsx
index b9c4e57b7..03399cfba 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>

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]