[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: anastasis-webui: remove butto
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: anastasis-webui: remove button for resetting policies |
Date: |
Wed, 13 Apr 2022 08:51:30 +0200 |
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 a74bd998 anastasis-webui: remove button for resetting policies
a74bd998 is described below
commit a74bd998f1702111358bb48305654990b6a02c84
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Apr 13 08:51:27 2022 +0200
anastasis-webui: remove button for resetting policies
---
.../src/pages/home/ReviewPoliciesScreen.tsx | 27 ----------------------
1 file changed, 27 deletions(-)
diff --git a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx
b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx
index 5d75d5aa..6c5958d8 100644
--- a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx
@@ -10,7 +10,6 @@ import { AnastasisClientFrame } from "./index";
export function ReviewPoliciesScreen(): VNode {
const [editingPolicy, setEditingPolicy] = useState<number | undefined>();
- const [confirmReset, setConfirmReset] = useState(false);
const reducer = useAnastasisContext();
if (!reducer) {
return <div>no reducer in context</div>;
@@ -40,14 +39,6 @@ export function ReviewPoliciesScreen(): VNode {
/>
);
}
- async function resetPolicies(): Promise<void> {
- if (!reducer) return Promise.resolve();
- return reducer.runTransaction(async (tx) => {
- await tx.transition("back", {});
- await tx.transition("next", {});
- setConfirmReset(false);
- });
- }
const errors = policies.length < 1 ? "Need more policies" : undefined;
return (
@@ -69,9 +60,6 @@ export function ReviewPoliciesScreen(): VNode {
</p>
)}
<div class="block">
- <AsyncButton class="button" onClick={async () =>
setConfirmReset(true)}>
- Reset policies
- </AsyncButton>
<button
class="button is-success"
style={{ marginLeft: 10 }}
@@ -159,21 +147,6 @@ export function ReviewPoliciesScreen(): VNode {
</div>
);
})}
- {confirmReset && (
- <ConfirmModal
- active
- onCancel={() => setConfirmReset(false)}
- description="Do you want to reset the policies to default state?"
- label="Reset policies"
- cancelLabel="Cancel"
- onConfirm={resetPolicies}
- >
- <p>
- All policies will be recalculated based on the authentication
- providers configured and any change that you did will be lost
- </p>
- </ConfirmModal>
- )}
</AnastasisClientFrame>
);
}
--
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: anastasis-webui: remove button for resetting policies,
gnunet <=