[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: do not ask for confirmation d
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: do not ask for confirmation during recovery |
Date: |
Fri, 19 Nov 2021 12:47:57 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 2bf9461f do not ask for confirmation during recovery
2bf9461f is described below
commit 2bf9461f879d4ebc8161b8176998cea3fccac6a9
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Nov 19 12:47:55 2021 +0100
do not ask for confirmation during recovery
---
.../anastasis-webui/src/pages/home/AttributeEntryScreen.tsx | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
index 1b50779e..c3c5d764 100644
--- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
@@ -19,6 +19,7 @@ export function AttributeEntryScreen(): VNode {
const [attrs, setAttrs] = useState<Record<string, string>>(
currentIdentityAttributes,
);
+ const isBackup = state && state.backup_state;
const [askUserIfSure, setAskUserIfSure] = useState(false);
if (!reducer) {
@@ -54,11 +55,17 @@ export function AttributeEntryScreen(): VNode {
);
});
+ const doConfirm = async () => {
+ await reducer.transition("enter_user_attributes", {
+ identity_attributes: attrs,
+ });
+ };
+
return (
<AnastasisClientFrame
title={withProcessLabel(reducer, "Who are you?")}
hideNext={hasErrors ? "Complete the form." : undefined}
- onNext={async () => setAskUserIfSure(true) }
+ onNext={async () => isBackup ? setAskUserIfSure(true) : doConfirm() }
>
{askUserIfSure ? (
<ConfirmModal
@@ -67,9 +74,7 @@ export function AttributeEntryScreen(): VNode {
description="The values in the form must be correct"
label="I am sure"
cancelLabel="Wait, I want to check"
- onConfirm={() => reducer.transition("enter_user_attributes", {
- identity_attributes: attrs,
- }).then(() => setAskUserIfSure(false) )}
+ onConfirm={() => doConfirm().then(() => setAskUserIfSure(false) )}
>
You personal information is used to define the location where your
secret will be safely stored. If you forget what you have entered or
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: do not ask for confirmation during recovery,
gnunet <=