diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-30 18:42:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-30 18:44:41 -0300 |
commit | f1967ab0baf825cdfa767d36bb7cce78521e4e4b (patch) | |
tree | 43650091b8542dfa750a69524efa3e5ff16b7201 /packages/taler-wallet-webextension/src/wallet/Settings.tsx | |
parent | fb4c172bb430936268bcebe34142d4206a0d422e (diff) | |
download | wallet-core-f1967ab0baf825cdfa767d36bb7cce78521e4e4b.tar.xz |
testing auto open feature
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Settings.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Settings.tsx | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Settings.tsx b/packages/taler-wallet-webextension/src/wallet/Settings.tsx index 2319fe30a..b27413a96 100644 --- a/packages/taler-wallet-webextension/src/wallet/Settings.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Settings.tsx @@ -73,10 +73,10 @@ export function SettingsPage(): VNode { deviceName={name} setDeviceName={update} autoOpenToggle={{ - value: settings.autoOpenByHeader, + value: settings.autoOpen, button: { onClick: safely("update support injection", async () => { - updateSettings("autoOpenByHeader", !settings.autoOpenByHeader); + updateSettings("autoOpen", !settings.autoOpen); }), }, }} @@ -217,23 +217,6 @@ export function SettingsView({ <i18n.Translate>Add an exchange</i18n.Translate> </LinkPrimary> </div> - <EnabledBySettings name="advanceMode"> - <SubTitle> - <i18n.Translate>Navigator</i18n.Translate> - </SubTitle> - <Checkbox - label={i18n.str`Automatically open wallet based on page content`} - name="autoOpen" - description={ - <i18n.Translate> - Enabling this option below will make using the wallet faster, - but requires more permissions from your browser. - </i18n.Translate> - } - enabled={autoOpenToggle.value!} - onToggle={autoOpenToggle.button.onClick!} - /> - </EnabledBySettings> {coreVersion && (<Fragment> {LibtoolVersion.compare(coreVersion.version, WALLET_CORE_SUPPORTED_VERSION)?.compatible ? undefined : @@ -305,6 +288,17 @@ export function SettingsView({ enabled={injectTalerToggle.value!} onToggle={injectTalerToggle.button.onClick!} /> + <Checkbox + label={i18n.str`Automatically open wallet`} + name="autoOpen" + description={ + <i18n.Translate> + Open the wallet when a payment action is found. + </i18n.Translate> + } + enabled={autoOpenToggle.value!} + onToggle={autoOpenToggle.button.onClick!} + /> <SubTitle> <i18n.Translate>Version</i18n.Translate> </SubTitle> |