[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: show an error message when ha
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: show an error message when handler is not found |
Date: |
Thu, 13 Apr 2023 18:17:50 +0200 |
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 9ef5a4931 show an error message when handler is not found
9ef5a4931 is described below
commit 9ef5a4931eff4a7b8589963733f266c58e873505
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Apr 13 13:17:44 2023 -0300
show an error message when handler is not found
---
.../taler-wallet-webextension/src/wallet/Application.tsx | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx
b/packages/taler-wallet-webextension/src/wallet/Application.tsx
index 2b03bb947..d960794e0 100644
--- a/packages/taler-wallet-webextension/src/wallet/Application.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx
@@ -29,7 +29,7 @@ import { createHashHistory } from "history";
import { ComponentChildren, Fragment, h, VNode } from "preact";
import { route, Route, Router } from "preact-router";
import { useEffect } from "preact/hooks";
-import { CurrentAlerts } from "../components/CurrentAlerts.js";
+import { AlertView, CurrentAlerts } from "../components/CurrentAlerts.js";
import { LogoHeader } from "../components/LogoHeader.js";
import PendingTransactions from "../components/PendingTransactions.js";
import {
@@ -299,7 +299,17 @@ export function Application(): VNode {
component={({ uri }: { uri: string }) => {
const path = getPathnameForTalerURI(uri);
if (!path) {
- return <Redirect to={Pages.balance} />;
+ return (
+ <CallToActionTemplate title={i18n.str`Taler URI handler`}>
+ <AlertView
+ alert={{
+ type: "warning",
+ message: i18n.str`Could not found a handler for the
Taler URI`,
+ description: i18n.str`The uri read in the path
parameter is not valid: "${uri}"`,
+ }}
+ />
+ </CallToActionTemplate>
+ );
}
return <Redirect to={path} />;
}}
--
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: show an error message when handler is not found,
gnunet <=