remove deprecated taler://notify-reserve URI handling
This commit is contained in:
parent
1fe8967c43
commit
9ec3448076
@ -94,7 +94,6 @@ export enum TalerUriType {
|
||||
TalerWithdraw = "taler-withdraw",
|
||||
TalerTip = "taler-tip",
|
||||
TalerRefund = "taler-refund",
|
||||
TalerNotifyReserve = "taler-notify-reserve",
|
||||
TalerPayPush = "taler-pay-push",
|
||||
TalerPayPull = "taler-pay-pull",
|
||||
TalerRecovery = "taler-recovery",
|
||||
@ -152,9 +151,6 @@ export function classifyTalerUri(s: string): TalerUriType {
|
||||
if (sl.startsWith(`taler+http://${talerActionPayPull}/`)) {
|
||||
return TalerUriType.TalerPayPull;
|
||||
}
|
||||
if (sl.startsWith("taler://notify-reserve/")) {
|
||||
return TalerUriType.TalerNotifyReserve;
|
||||
}
|
||||
if (sl.startsWith("taler://dev-experiment/")) {
|
||||
return TalerUriType.TalerDevExperiment;
|
||||
}
|
||||
|
@ -266,11 +266,6 @@ function openWalletURIFromPopup(talerUri: string): void {
|
||||
`static/wallet.html#/cta/transfer/pickup?talerPayPushUri=${talerUri}`,
|
||||
);
|
||||
break;
|
||||
case TalerUriType.TalerNotifyReserve:
|
||||
logger.warn(
|
||||
`Response with HTTP 402 the Taler header but it is deprecated ${talerUri}`,
|
||||
);
|
||||
break;
|
||||
case TalerUriType.Unknown:
|
||||
logger.warn(
|
||||
`Response with HTTP 402 the Taler header but could not classify ${talerUri}`,
|
||||
|
@ -87,22 +87,6 @@ export function TalerActionFound({ url, onDismiss }: Props): VNode {
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
{uriType === TalerUriType.TalerNotifyReserve && (
|
||||
<div>
|
||||
<p>
|
||||
<i18n.Translate>
|
||||
This page has a notify reserve action.
|
||||
</i18n.Translate>
|
||||
</p>
|
||||
<Button
|
||||
variant="contained"
|
||||
color="success"
|
||||
onClick={redirectToWallet}
|
||||
>
|
||||
<i18n.Translate>Notify</i18n.Translate>
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
{uriType === TalerUriType.TalerRefund && (
|
||||
<div>
|
||||
<p>
|
||||
|
@ -64,8 +64,6 @@ export function AddNewActionView({ onCancel }: Props): VNode {
|
||||
>
|
||||
{(() => {
|
||||
switch (uriType) {
|
||||
case TalerUriType.TalerNotifyReserve:
|
||||
return <i18n.Translate>Open reserve page</i18n.Translate>;
|
||||
case TalerUriType.TalerPay:
|
||||
return <i18n.Translate>Open pay page</i18n.Translate>;
|
||||
case TalerUriType.TalerRefund:
|
||||
|
@ -296,13 +296,6 @@ function parseTalerUriAndRedirect(tabId: number, talerUri: string): void {
|
||||
tabId,
|
||||
`/cta/transfer/recovery?talerBackupUri=${talerUri}`,
|
||||
);
|
||||
case TalerUriType.TalerNotifyReserve:
|
||||
// FIXME: Is this still useful?
|
||||
// handleNotifyReserve(w);
|
||||
logger.warn(
|
||||
`Response with HTTP 402 the Taler header but it is deprecated ${talerUri}`,
|
||||
);
|
||||
break;
|
||||
case TalerUriType.Unknown:
|
||||
logger.warn(
|
||||
`Response with HTTP 402 the Taler header but could not classify ${talerUri}`,
|
||||
|
Loading…
Reference in New Issue
Block a user