Add staging source toggle

This commit is contained in:
Djuri Baars 2024-09-05 13:42:16 +02:00 committed by kdmukai
parent cb91373233
commit 3184b4c973
2 changed files with 13 additions and 1 deletions

View file

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

View file

@ -770,6 +770,17 @@
label="{$_('section.settings.httpAuthEnabled')} ({$_('restartRequired')})" label="{$_('section.settings.httpAuthEnabled')} ({$_('restartRequired')})"
/> />
</Col> </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>
<Row> <Row>