bugfix for long preferences key

This commit is contained in:
kdmukai 2024-12-18 17:07:23 -06:00
parent f458417536
commit 711c625648
3 changed files with 7 additions and 7 deletions

View file

@ -44,7 +44,7 @@
"useNostr": "Use Nostr data source",
"bitaxeHostname": "BitAxe hostname or IP",
"bitaxeEnabled": "Enable BitAxe",
"miningPoolStatsEnabled": "Enable Mining Pool Stats",
"miningPoolStats": "Enable Mining Pool Stats",
"miningPoolName": "Mining Pool",
"miningPoolUser": "Mining Pool username or api key",
"nostrZapPubkey": "Nostr Zap pubkey",

View file

@ -698,7 +698,7 @@
</Col>
</Row>
{/if}
{#if $settings.miningPoolStatsEnabled}
{#if $settings.miningPoolStats}
<Row>
<Label md={6} for="miningPoolName" size={$uiSettings.inputSize}
>{$_('section.settings.miningPoolName')}</Label
@ -812,14 +812,14 @@
/>
</Col>
{/if}
{#if 'miningPoolStatsEnabled' in $settings}
{#if 'miningPoolStats' in $settings}
<Col md="6" xl="12" xxl="6">
<Input
id="miningPoolStatsEnabled"
bind:checked={$settings.miningPoolStatsEnabled}
id="miningPoolStats"
bind:checked={$settings.miningPoolStats}
type="switch"
bsSize={$uiSettings.inputSize}
label="{$_('section.settings.miningPoolStatsEnabled')} ({$_('restartRequired')})"
label="{$_('section.settings.miningPoolStats')} ({$_('restartRequired')})"
/>
</Col>
{/if}

View file

@ -45,7 +45,7 @@ export const settingsJson = {
gitTag: '3.1.9',
bitaxeEnabled: false,
bitaxeHostname: 'bitaxe1',
miningPoolStatsEnabled: false,
miningPoolStats: false,
miningPoolName: 'ocean',
miningPoolUser: '38Qkkei3SuF1Eo45BaYmRHUneRD54yyTFy',
nostrZapNotify: true,