diff options
| author | Adam Soltys <[email protected]> | 2022-12-27 13:45:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-12-27 13:45:55 -0800 |
| commit | ff6ef6d8e3e546fb2396bcac74383cb460c04b58 (patch) | |
| tree | ff7a6388f015c0f6bd33478b1f0f50000a172a73 /src/components | |
| parent | 32dacb775fc3e2fa8efcc6d0be352ec50f244482 (diff) | |
| download | coinos-ui-ff6ef6d8e3e546fb2396bcac74383cb460c04b58.tar.gz coinos-ui-ff6ef6d8e3e546fb2396bcac74383cb460c04b58.zip | |
broadcast profile settings to nostr
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Feed.svelte | 5 | ||||
| -rw-r--r-- | src/components/Password.svelte | 8 | ||||
| -rw-r--r-- | src/components/Pin.svelte | 4 |
3 files changed, 9 insertions, 8 deletions
diff --git a/src/components/Feed.svelte b/src/components/Feed.svelte index 0ccda7b8..eef12a91 100644 --- a/src/components/Feed.svelte +++ b/src/components/Feed.svelte @@ -7,7 +7,7 @@ import { post, punk, failure } from '$lib/utils'; import { Password } from '$comp'; import { password, passwordPrompt } from '$lib/store'; - import { send } from '$lib/nostr'; + import { sign, send } from '$lib/nostr'; export let events; export let user; @@ -35,7 +35,8 @@ tags: [] }; - await send(event, user, $password); + await sign(event, user, $password); + await send(event); event.user = user; event.seen = event.created_at; diff --git a/src/components/Password.svelte b/src/components/Password.svelte index c9318201..e21bdad1 100644 --- a/src/components/Password.svelte +++ b/src/components/Password.svelte @@ -1,5 +1,5 @@ <script> - import { Icon } from "$comp"; + import { Icon } from '$comp'; import { failure, post } from '$lib/utils'; import { password as pw, passwordPrompt } from '$lib/store'; @@ -9,7 +9,7 @@ let { username } = user; let revealPassword = false; - let cancel = () => ($passwordPrompt = false); + let cancel = () => ($passwordPrompt = false); let submit = async () => { try { @@ -60,8 +60,8 @@ <button type="button" class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80 mx-auto" - on:click={cancel} - on:keydown={cancel} + on:click={cancel} + on:keydown={cancel} > <div class="my-auto">Cancel</div> </button> diff --git a/src/components/Pin.svelte b/src/components/Pin.svelte index 9b1bb4ea..efc1e81b 100644 --- a/src/components/Pin.svelte +++ b/src/components/Pin.svelte @@ -4,7 +4,7 @@ let pinCode = ''; let pinInput; - let cancel = () => ($pin = '000000'); + let cancel = () => ($pin = '000000'); $: pinCode.length > 5 && ($pin = pinCode); </script> @@ -17,7 +17,7 @@ <button type="submit" class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80 mx-auto" - on:click={cancel} + on:click={cancel} > <div class="my-auto">Cancel</div> </button> |
