From dcdf98964a42ccd83b2d2501bbed46a640bbc300 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Mon, 11 Mar 2024 21:09:15 +0100 Subject: [PATCH] Add settings for new functionality --- src/lib/locales/en.json | 2 + src/lib/locales/es.json | 2 + src/lib/locales/nl.json | 2 + src/routes/Control.svelte | 79 +++++++++++++++++++------------------- src/routes/Settings.svelte | 18 +++++++++ src/routes/Status.svelte | 34 ++++++++-------- 6 files changed, 82 insertions(+), 55 deletions(-) diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index 93d7007..aab360c 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -17,6 +17,8 @@ "useBigCharsMcap": "Use big characters for market cap", "useBlkCountdown": "Blocks countdown for halving", "useSatsSymbol": "Use sats symbol", + "suffixPrice": "Suffix price format", + "disableLeds": "Disable all LEDs effects", "otaUpdates": "OTA updates", "enableMdns": "mDNS", "fetchEuroPrice": "Fetch € price", diff --git a/src/lib/locales/es.json b/src/lib/locales/es.json index 13a77b6..adc42ab 100644 --- a/src/lib/locales/es.json +++ b/src/lib/locales/es.json @@ -22,6 +22,8 @@ "enableMdns": "mDNS", "hostnamePrefix": "Prefijo de nombre de host", "mempoolnstance": "Instancia de Mempool", + "suffixPrice": "Precio con sufijos", + "disableLeds": "Desactivar efectos de LED", "otaUpdates": "Actualización por aire", "wifiTxPowerText": "En la mayoría de los casos no es necesario configurar esto.", "settingsSaved": "Configuración guardada", diff --git a/src/lib/locales/nl.json b/src/lib/locales/nl.json index c9ddae6..90d47c2 100644 --- a/src/lib/locales/nl.json +++ b/src/lib/locales/nl.json @@ -22,6 +22,8 @@ "screens": "Schermen", "hostnamePrefix": "Hostnaam voorvoegsel", "mempoolnstance": "Mempool instantie", + "suffixPrice": "Achtervoegsel prijs formaat", + "disableLeds": "Alle LEDs effecten uit", "otaUpdates": "OTA updates", "wifiTxPower": "WiFi TX power", "wifiTxPowerText": "Meestal hoeft dit niet aangepast te worden.", diff --git a/src/routes/Control.svelte b/src/routes/Control.svelte index b36215d..01c41a0 100644 --- a/src/routes/Control.svelte +++ b/src/routes/Control.svelte @@ -106,45 +106,46 @@
-

LEDs

-
- - - - - {#if ledStatus} - {#each ledStatus as led, i} - - - - {/each} - {/if} - - - - - - - - - - -
- -
+ {#if !$settings.disableLeds} +

LEDs

+
+ + + + + {#if ledStatus} + {#each ledStatus as led, i} + + + + {/each} + {/if} + + + + + + + + + + +
+
+ {/if}

{$_('section.control.systemInfo')}