From 876f3b01d8b4a92b13c869b90fdb0abc978503d9 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sat, 24 Aug 2024 16:02:49 +0300 Subject: [PATCH] Add nostr zap WebUI settings --- src/lib/locales/en.json | 5 ++++- src/routes/Settings.svelte | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index 38bb386..1e2b3a0 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -38,10 +38,13 @@ "luxLightToggle": "Auto toggle frontlight at lux", "wpTimeout": "WiFi-config portal timeout", "nostrPubKey": "Nostr source pubkey", + "nostrZapKey": "Nostr zap pubkey", "nostrRelay": "Nostr Relay", + "nostrZapNotify": "Nostr Zap Notifications", "useNostr": "Use Nostr datasource", "bitaxeHostname": "BitAxe hostname", - "bitaxeEnabled": "Enable BitAxe" + "bitaxeEnabled": "Enable BitAxe", + "nostrZapPubkey": "Nostr Zap pubkey" }, "control": { "systemInfo": "System info", diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index de7852b..476a5eb 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -299,6 +299,24 @@ {/if} + {#if 'nostrZapNotify' in $settings} + + + + + + + {/if} {#if $settings.useNostr} + {/if} + {#if 'nostrZapNotify' in $settings || $settings.useNostr} {/if} + {#if 'nostrZapNotify' in $settings} + + + + {/if} {#if 'bitaxeEnabled' in $settings}