diff options
author | Sebastian <sebasjm@gmail.com> | 2024-06-14 15:11:34 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-06-14 15:11:34 -0300 |
commit | cf929379bc2b09222817fbbd7063d0b31fc00add (patch) | |
tree | cdde0cabd030abe73b5ce81ecc26bcc05b940769 /packages/bank-ui/src/hooks | |
parent | 999a18a25381083b64aad448875d59139573c978 (diff) | |
download | wallet-core-cf929379bc2b09222817fbbd7063d0b31fc00add.tar.xz |
fix #8930
Diffstat (limited to 'packages/bank-ui/src/hooks')
-rw-r--r-- | packages/bank-ui/src/hooks/preferences.ts | 13 |
1 files changed, 12 insertions, 1 deletions
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<Preferences> => @@ -40,6 +41,8 @@ export const codecForPreferences = (): Codec<Preferences> => .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<keyof Preferences> { "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": |