From 2fffb3ef0284b4262ca97a81eb979259186604e5 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Thu, 5 Sep 2024 13:42:16 +0200 Subject: [PATCH] Add staging source toggle --- src/lib/locales/en.json | 3 ++- src/routes/Settings.svelte | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index c518200..c00bd15 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -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", diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index 9a6b0f2..bd15fdd 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -770,6 +770,17 @@ label="{$_('section.settings.httpAuthEnabled')} ({$_('restartRequired')})" /> + {#if 'stagingSource' in $settings} + + + + {/if}