Skip to content

Commit

Permalink
Add staging source toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
dsbaars committed Sep 5, 2024
1 parent 3d69570 commit 2fffb3e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions src/routes/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2fffb3e

Please sign in to comment.