diff options
| author | Adam Soltys <[email protected]> | 2025-03-12 15:19:52 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-03-12 15:19:52 -0700 |
| commit | d6d36b52f16d02bd112483ae9fe69876623935b6 (patch) | |
| tree | 859d89b06e9b40059546efe5eb496d46a731e5e7 /src/components/AppForm.svelte | |
| parent | 692217a3c8f3982e3b8357856d7c59335ad1316b (diff) | |
| download | coinos-ui-d6d36b52f16d02bd112483ae9fe69876623935b6.tar.gz coinos-ui-d6d36b52f16d02bd112483ae9fe69876623935b6.zip | |
opt in to nwc notifications
Diffstat (limited to 'src/components/AppForm.svelte')
| -rw-r--r-- | src/components/AppForm.svelte | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/components/AppForm.svelte b/src/components/AppForm.svelte index 0642e1b1..76f703f1 100644 --- a/src/components/AppForm.svelte +++ b/src/components/AppForm.svelte @@ -4,6 +4,7 @@ import { page } from "$app/stores"; import AmountField from "$comp/AmountField.svelte"; import Numpad from "$comp/Numpad.svelte"; + import Toggle from "$comp/Toggle.svelte"; import { getPublicKey } from "nostr-tools"; import { onMount, tick } from "svelte"; import { bytesToHex, randomBytes } from "@noble/hashes/utils"; @@ -25,6 +26,7 @@ budget_renewal, pubkey, secret, + notify, } = $props(); let { currency } = $derived(user); @@ -84,7 +86,7 @@ /> <AmountField - desc={$t("accounts.maxfeeDesc")} + none="1%" {currency} {rate} bind:amount={max_fee} @@ -106,6 +108,16 @@ </div> <div> + <label for="notify" class="font-bold mb-1 block" + >{$t("accounts.notifications")}</label + > + <select name="notify" bind:value={notify}> + <option value={false} selected>{$t("accounts.off")}</option> + <option value={true}>{$t("accounts.on")}</option> + </select> + </div> + + <div> <label for="pubkey" class="font-bold mb-1 block" >{$t("accounts.pubkey")}</label > |
