commit 6f2c30a7ea440971c91e7a3a9f8d291775ef8b38 parent 3b6993113a944e0013c4e5f1128ba20351de51b5 Author: Sebastian <sebasjm@gmail.com> Date: Wed, 20 Aug 2025 10:24:11 -0300 fix #10258 Diffstat:
4 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/packages/taler-wallet-webextension/src/cta/Refund/state.ts b/packages/taler-wallet-webextension/src/cta/Refund/state.ts @@ -17,14 +17,13 @@ import { Amounts, NotificationType, - TransactionPayment, - TransactionType, + TransactionType } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; +import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { useEffect, useState } from "preact/hooks"; import { alertFromError, useAlertContext } from "../../context/alert.js"; import { useBackendContext } from "../../context/backend.js"; -import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { useAsyncAsHook } from "../../hooks/useAsyncAsHook.js"; import { Props, State } from "./index.js"; diff --git a/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts b/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts @@ -46,6 +46,7 @@ export function useComponentState({ const hook = useAsyncAsHook(async () => { return await api.wallet.call(WalletApiOperation.CheckPeerPushDebit, { amount: amountStr, + restrictScope: scope, }); }, [amountStr]); @@ -84,6 +85,7 @@ export function useComponentState({ amount: amountStr, purse_expiration, }, + restrictScope: scope, }, ); onSuccess(resp.transactionId); diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx b/packages/taler-wallet-webextension/src/wallet/Application.tsx @@ -29,9 +29,8 @@ import { parsePaytoUri, parseScopeInfoShort, parseTalerUri, - stringifyPaytoUri, stringifyScopeInfoShort, - stringifyTalerUri, + stringifyTalerUri } from "@gnu-taler/taler-util"; import { TranslationProvider, @@ -50,8 +49,10 @@ import { getPathnameForTalerURI, } from "../NavigationBar.js"; import { AlertView, CurrentAlerts } from "../components/CurrentAlerts.js"; +import { EnabledBySettings } from "../components/EnabledBySettings.js"; import { LogoHeader } from "../components/LogoHeader.js"; import PendingTransactions from "../components/PendingTransactions.js"; +import { WalletActivity } from "../components/WalletActivity.js"; import { LinkPrimary, RedBanner, @@ -62,6 +63,7 @@ import { import { AlertProvider } from "../context/alert.js"; import { IoCProviderForRuntime } from "../context/iocContext.js"; import { DepositPage as DepositPageCTA } from "../cta/Deposit/index.js"; +import { DevExperimentPage } from "../cta/DevExperiment/index.js"; import { InvoiceCreatePage } from "../cta/InvoiceCreate/index.js"; import { InvoicePayPage } from "../cta/InvoicePay/index.js"; import { PaymentPage } from "../cta/Payment/index.js"; @@ -79,23 +81,20 @@ import { strings } from "../i18n/strings.js"; import CloseIcon from "../svg/close_24px.inline.svg"; import { AddBackupProviderPage } from "./AddBackupProvider/index.js"; import { AddExchange } from "./AddExchange/index.js"; +import { ConfirmAddExchangeView } from "./AddExchange/views.js"; import { BackupPage } from "./BackupPage.js"; import { DepositPage } from "./DepositPage/index.js"; import { DestinationSelectionPage } from "./DestinationSelection/index.js"; import { DeveloperPage } from "./DeveloperPage.js"; import { HistoryPage } from "./History.js"; +import { ManageAccountPage } from "./ManageAccount/index.js"; import { NotificationsPage } from "./Notifications/index.js"; import { ProviderDetailPage } from "./ProviderDetailPage.js"; import { QrReaderPage } from "./QrReader.js"; import { SettingsPage } from "./Settings.js"; +import { SupportedBanksForAccount } from "./SupportedBanksForAccount.js"; import { TransactionPage } from "./Transaction.js"; import { WelcomePage } from "./Welcome.js"; -import { WalletActivity } from "../components/WalletActivity.js"; -import { EnabledBySettings } from "../components/EnabledBySettings.js"; -import { DevExperimentPage } from "../cta/DevExperiment/index.js"; -import { ConfirmAddExchangeView } from "./AddExchange/views.js"; -import { ManageAccountPage } from "./ManageAccount/index.js"; -import { SupportedBanksForAccount } from "./SupportedBanksForAccount.js"; export function Application(): VNode { const { i18n } = useTranslationContext(); diff --git a/packages/taler-wallet-webextension/src/wallet/History.tsx b/packages/taler-wallet-webextension/src/wallet/History.tsx @@ -19,14 +19,12 @@ import { Amounts, NotificationType, ScopeInfo, - ScopeInfoAuditor, - ScopeInfoExchange, ScopeType, Transaction, URL, WalletBalance, parseScopeInfoShort, - stringifyScopeInfoShort, + stringifyScopeInfoShort } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { useTranslationContext } from "@gnu-taler/web-util/browser"; @@ -48,11 +46,11 @@ import { useBackendContext } from "../context/backend.js"; import { useAsyncAsHook } from "../hooks/useAsyncAsHook.js"; import { useSettings } from "../hooks/useSettings.js"; import { Button } from "../mui/Button.js"; +import { TextField } from "../mui/TextField.js"; +import { TextFieldHandler } from "../mui/handlers.js"; import { NoBalanceHelp } from "../popup/NoBalanceHelp.js"; import DownloadIcon from "../svg/download_24px.inline.svg"; import UploadIcon from "../svg/upload_24px.inline.svg"; -import { TextField } from "../mui/TextField.js"; -import { TextFieldHandler } from "../mui/handlers.js"; interface Props { scope?: ScopeInfo;