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", "useNostr": "Use Nostr data source",
"bitaxeHostname": "BitAxe hostname or IP", "bitaxeHostname": "BitAxe hostname or IP",
"bitaxeEnabled": "Enable BitAxe", "bitaxeEnabled": "Enable BitAxe",
"miningPoolStatsEnabled": "Enable Mining Pool Stats", "miningPoolStats": "Enable Mining Pool Stats",
"miningPoolName": "Mining Pool", "miningPoolName": "Mining Pool",
"miningPoolUser": "Mining Pool username or api key", "miningPoolUser": "Mining Pool username or api key",
"nostrZapPubkey": "Nostr Zap pubkey", "nostrZapPubkey": "Nostr Zap pubkey",

View file

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

View file

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