Add staging source toggle

This commit is contained in:
Djuri Baars 2024-09-05 13:42:16 +02:00
parent 3d69570099
commit 2fffb3ef02
2 changed files with 13 additions and 1 deletions

View File

@ -52,7 +52,8 @@
"httpAuthUser": "WebUI Username",
"httpAuthPass": "WebUI Password",
"httpAuthText": "Only password-protects WebUI, not API-calls.",
"currencies": "Currencies"
"currencies": "Currencies",
"stagingSource": "Use Staging datasource (for development)"
},
"control": {
"systemInfo": "System info",

View File

@ -770,6 +770,17 @@
label="{$_('section.settings.httpAuthEnabled')} ({$_('restartRequired')})"
/>
</Col>
{#if 'stagingSource' in $settings}
<Col md="6" xl="12" xxl="6">
<Input
id="stagingSource"
bind:checked={$settings.stagingSource}
type="switch"
bsSize={$uiSettings.inputSize}
label="{$_('section.settings.stagingSource')} ({$_('restartRequired')})"
/>
</Col>
{/if}
</Row>
<Row>