From 74b9ee559fc57f48a591140eb342cc8e2bbd3dd3 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 28 Feb 2024 22:41:41 -0300 Subject: get activity --- .../src/wallet/DeveloperPage.tsx | 44 ++++------------------ 1 file changed, 8 insertions(+), 36 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx') diff --git a/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx b/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx index d19fef155..adb114862 100644 --- a/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx @@ -103,16 +103,16 @@ export function DeveloperPage({ }: Props): VNode { const hook = useAsyncAsHook(async () => { const list = await api.wallet.call(WalletApiOperation.ListExchanges, {}); const version = await api.wallet.call(WalletApiOperation.GetVersion, {}); - const operations: any[] = await api.wallet.call( - WalletApiOperation.GetPendingOperations, + const tasks = await api.wallet.call( + WalletApiOperation.GetActiveTasks, {}, ); const coins = await api.wallet.call(WalletApiOperation.DumpCoins, {}); - return { exchanges: list.exchanges, version, coins, operations }; + return { exchanges: list.exchanges, version, coins, tasks:tasks.tasks }; }); const exchangeList = hook && !hook.hasError ? hook.response.exchanges : []; const coins = hook && !hook.hasError ? hook.response.coins.coins : []; - const operations = hook && !hook.hasError ? hook.response.operations : []; + const tasks = hook && !hook.hasError ? hook.response.tasks : []; useEffect(() => { return api.listener.onUpdateNotification(listenAllEvents, hook?.retry); @@ -485,34 +485,6 @@ export function DeveloperPage({ }: Props): VNode { Set log level - -

Exchange

-
- -
- -
{downloadedDatabase && (
@@ -573,19 +545,19 @@ export function DeveloperPage({ }: Props): VNode { ); })}
- {operations && operations.length > 0 && ( + {tasks && tasks.length > 0 && (

Pending operations

- {operations.reverse().map((o) => { + {tasks.map((o) => { return (
- {o.type}{" "} + {o.id}{" "}
-- cgit v1.2.3