diff --git a/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx b/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx
index e52add756..214c4d792 100644
--- a/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx
+++ b/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx
@@ -69,28 +69,28 @@ export function ShowButtonsNonAcceptedTosView({
terms,
}: State.ShowButtonsNotAccepted): VNode {
const { i18n } = useTranslationContext();
- const ableToReviewTermsOfService =
- showingTermsOfService.button.onClick !== undefined;
+ // const ableToReviewTermsOfService =
+ // showingTermsOfService.button.onClick !== undefined;
- if (!ableToReviewTermsOfService) {
- return (
-
- {terms.status === ExchangeTosStatus.NotFound && (
-
-
-
- Exchange doesn't have terms of service
-
-
-
- )}
-
- );
- }
+ // if (!ableToReviewTermsOfService) {
+ // return (
+ //
+ // {terms.status === ExchangeTosStatus.Pending && (
+ //
+ //
+ //
+ // Exchange doesn't have terms of service
+ //
+ //
+ //
+ // )}
+ //
+ // );
+ // }
return (
- {terms.status === ExchangeTosStatus.NotFound && (
+ {/* {terms.status === ExchangeTosStatus.NotFound && (
@@ -98,8 +98,8 @@ export function ShowButtonsNonAcceptedTosView({
- )}
- {terms.status === "new" && (
+ )} */}
+ {terms.status === ExchangeTosStatus.Pending && (
)}
- {terms.status === "changed" && (
-
-
-
- )}
);
}
@@ -138,7 +125,7 @@ export function ShowTosContentView({
return (
- {terms.status !== ExchangeTosStatus.NotFound && !terms.content && (
+ {!terms.content && (
@@ -194,7 +181,7 @@ export function ShowTosContentView({
)}
- {termsAccepted && terms.status !== ExchangeTosStatus.NotFound && (
+ {termsAccepted && terms.status !== ExchangeTosStatus.Proposed && (
{
- onAmountChanged(Amounts.stringify(amount));
- })
+ onAmountChanged(Amounts.stringify(amount));
+ })
: undefined,
},
amount: {
@@ -304,8 +304,8 @@ function exchangeSelectionState(
const [ageRestricted, setAgeRestricted] = useState(0);
const currentExchange = selectedExchange.selected;
const tosNeedToBeAccepted =
- currentExchange.tosStatus == ExchangeTosStatus.New ||
- currentExchange.tosStatus == ExchangeTosStatus.Changed;
+ currentExchange.tosStatus == ExchangeTosStatus.Pending ||
+ currentExchange.tosStatus == ExchangeTosStatus.Proposed;
/**
* With the exchange and amount, ask the wallet the information
@@ -393,12 +393,12 @@ function exchangeSelectionState(
//TODO: calculate based on exchange info
const ageRestriction = ageRestrictionEnabled
? {
- list: ageRestrictionOptions,
- value: String(ageRestricted),
- onChange: pushAlertOnError(async (v: string) =>
- setAgeRestricted(parseInt(v, 10)),
- ),
- }
+ list: ageRestrictionOptions,
+ value: String(ageRestricted),
+ onChange: pushAlertOnError(async (v: string) =>
+ setAgeRestricted(parseInt(v, 10)),
+ ),
+ }
: undefined;
return {
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/test.ts b/packages/taler-wallet-webextension/src/cta/Withdraw/test.ts
index c7af160e4..ab3b2e316 100644
--- a/packages/taler-wallet-webextension/src/cta/Withdraw/test.ts
+++ b/packages/taler-wallet-webextension/src/cta/Withdraw/test.ts
@@ -37,7 +37,7 @@ const exchanges: ExchangeListItem[] = [
exchangeBaseUrl: "http://exchange.demo.taler.net",
paytoUris: [],
tosStatus: ExchangeTosStatus.Accepted,
- exchangeStatus: ExchangeEntryStatus.Ok,
+ exchangeStatus: ExchangeEntryStatus.Used,
permanent: true,
auditors: [
{
@@ -202,7 +202,7 @@ describe("Withdraw CTA states", () => {
const exchangeWithNewTos = exchanges.map((e) => ({
...e,
- tosStatus: ExchangeTosStatus.New,
+ tosStatus: ExchangeTosStatus.Proposed,
}));
handler.addWalletCallResponse(
diff --git a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/test.ts b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/test.ts
index 99b5ec176..7ef475805 100644
--- a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/test.ts
+++ b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/test.ts
@@ -24,6 +24,7 @@ import {
ExchangeEntryStatus,
ExchangeListItem,
ExchangeTosStatus,
+ ExchangeUpdateStatus,
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { expect } from "chai";
@@ -36,9 +37,9 @@ const exchangeArs: ExchangeListItem = {
currency: "ARS",
exchangeBaseUrl: "http://",
tosStatus: ExchangeTosStatus.Accepted,
- exchangeStatus: ExchangeEntryStatus.Ok,
+ exchangeEntryStatus: ExchangeEntryStatus.Used,
+ exchangeUpdateStatus: ExchangeUpdateStatus.Initial,
paytoUris: [],
- permanent: true,
ageRestrictionOptions: [],
};
diff --git a/packages/taler-wallet-webextension/src/wallet/Settings.tsx b/packages/taler-wallet-webextension/src/wallet/Settings.tsx
index 071d2a594..0aa46d615 100644
--- a/packages/taler-wallet-webextension/src/wallet/Settings.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Settings.tsx
@@ -163,20 +163,16 @@ export function SettingsView({
ok
);
- case ExchangeTosStatus.Changed:
+ case ExchangeTosStatus.Pending:
return (
- changed
+ pending
);
- case ExchangeTosStatus.New:
- case ExchangeTosStatus.NotFound:
+ case ExchangeTosStatus.Proposed:
return (
-
- not accepted
-
+ proposed
);
- case ExchangeTosStatus.Unknown:
default:
return (