diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index b4420dd..05f884f 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -66,6 +66,9 @@ }, "ledFlashOnZap": "LED flash on Nostr Zap", "flFlashOnZap": "Frontlight flash on Nostr Zap", + "mqttEnabled": "Enable MQTT", + "mqttHost": "MQTT hostname or IP", + "mqttRootTopic": "MQTT root topic", "showAll": "Show all", "hideAll": "Hide all" }, diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index 14c5fb7..4c79233 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -790,6 +790,53 @@ {/if} {/if} + + + + + + {#if $settings.mqttEnabled} + + + + + + + + + + + + + + + + + {/if} diff --git a/tests/test.ts b/tests/test.ts index 4fa59ca..b1bd8ac 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -48,6 +48,7 @@ const settingsJson = { bitaxeEnabled: false, bitaxeHostname: 'bitaxe1', nostrZapNotify: true, + mqttEnabled: false, hwRev: 'REV_A_EPD_2_13', fsRev: '4c5d9616212b27e3f05c35370f0befcf2c5a04b2', nostrZapPubkey: 'b5127a08cf33616274800a4387881a9f98e04b9c37116e92de5250498635c422',