From cf929379bc2b09222817fbbd7063d0b31fc00add Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 14 Jun 2024 15:11:34 -0300 Subject: fix #8930 --- packages/bank-ui/src/hooks/preferences.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'packages/bank-ui/src/hooks') diff --git a/packages/bank-ui/src/hooks/preferences.ts b/packages/bank-ui/src/hooks/preferences.ts index 4cb5e6a95..fadbbc8c1 100644 --- a/packages/bank-ui/src/hooks/preferences.ts +++ b/packages/bank-ui/src/hooks/preferences.ts @@ -19,7 +19,6 @@ import { TranslatedString, buildCodecForObject, codecForBoolean, - codecForNumber, } from "@gnu-taler/taler-util"; import { buildStorageKey, @@ -32,6 +31,8 @@ interface Preferences { showDemoDescription: boolean; showInstallWallet: boolean; showDebugInfo: boolean; + fastWithdrawalForm: boolean; + showCopyAccount: boolean; } export const codecForPreferences = (): Codec => @@ -40,6 +41,8 @@ export const codecForPreferences = (): Codec => .property("showDemoDescription", codecForBoolean()) .property("showInstallWallet", codecForBoolean()) .property("showDebugInfo", codecForBoolean()) + .property("fastWithdrawalForm", codecForBoolean()) + .property("showCopyAccount", codecForBoolean()) .build("Settings"); const defaultPreferences: Preferences = { @@ -47,6 +50,8 @@ const defaultPreferences: Preferences = { showDemoDescription: true, showInstallWallet: true, showDebugInfo: false, + fastWithdrawalForm: false, + showCopyAccount: false, }; const BANK_PREFERENCES_KEY = buildStorageKey( @@ -80,6 +85,8 @@ export function getAllBooleanPreferences(): Array { "showDemoDescription", "showInstallWallet", "showWithdrawalSuccess", + "fastWithdrawalForm", + "showCopyAccount", ]; } @@ -90,6 +97,10 @@ export function getLabelForPreferences( switch (k) { case "showWithdrawalSuccess": return i18n.str`Show withdrawal confirmation`; + case "fastWithdrawalForm": + return i18n.str`Withdraw without setting amount`; + case "showCopyAccount": + return i18n.str`Show copy account letter`; case "showDemoDescription": return i18n.str`Show demo description`; case "showInstallWallet": -- cgit v1.2.3