From 45c02f36510182ba2e430263b5fd24f182f7be30 Mon Sep 17 00:00:00 2001 From: kdmukai Date: Wed, 18 Dec 2024 15:57:38 -0600 Subject: [PATCH] Add mining pool stats enable/disable toggle --- src/lib/locales/en.json | 1 + src/routes/Settings.svelte | 22 +++++++++++++++++----- tests/shared.ts | 2 +- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index f08f40b..c4f826e 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -44,6 +44,7 @@ "useNostr": "Use Nostr data source", "bitaxeHostname": "BitAxe hostname or IP", "bitaxeEnabled": "Enable BitAxe", + "miningPoolStatsEnabled": "Enable Mining Pool Stats", "miningPoolName": "Mining Pool", "miningPoolUser": "Mining Pool username or api key", "nostrZapPubkey": "Nostr Zap pubkey", diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index 43964f3..385ebe3 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -705,14 +705,16 @@ > + class={$uiSettings.selectClass} + > + + + @@ -727,7 +729,6 @@ id="miningPoolUser" bsSize={$uiSettings.inputSize} required - minlength="64" > @@ -811,6 +812,17 @@ /> {/if} + {#if 'miningPoolStatsEnabled' in $settings} + + + + {/if} {#if 'nostrZapNotify' in $settings}