gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: use update_policy


From: gnunet
Subject: [taler-wallet-core] branch master updated: use update_policy
Date: Fri, 05 Nov 2021 15:26:20 +0100

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 4a8e4b90 use update_policy
4a8e4b90 is described below

commit 4a8e4b90267505e2acc143c9a933de1f22829472
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Nov 5 11:26:12 2021 -0300

    use update_policy
---
 .../src/pages/home/ReviewPoliciesScreen.tsx                | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx 
b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx
index 9441022b..f93963f6 100644
--- a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx
@@ -24,14 +24,10 @@ export function ReviewPoliciesScreen(): VNode {
       <EditPoliciesScreen
         index={editingPolicy}
         cancel={() => setEditingPolicy(undefined)}
-        confirm={(newMethods) => {
-          reducer.runTransaction(async (tx) => {
-            await tx.transition("delete_policy", {
-              policy_index: editingPolicy
-            });
-            await tx.transition("add_policy", {
-              policy: newMethods
-            });
+        confirm={async (newMethods) => {
+          await reducer.transition("update_policy", {
+            policy_index: editingPolicy,
+            policy: newMethods,
           });
           setEditingPolicy(undefined)
         }}
@@ -50,7 +46,7 @@ export function ReviewPoliciesScreen(): VNode {
       {policies.length < 1 && <p class="block">
         No policies had been created. Go back and add more authentication 
methods.
       </p>}
-      <div class="block" style={{justifyContent:'flex-end'}} >
+      <div class="block" style={{ justifyContent: 'flex-end' }} >
         <button class="button is-success" onClick={() => 
setEditingPolicy(policies.length + 1)}>Add new policy</button>
       </div>
       {policies.map((p, policy_index) => {

-- 
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]