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