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 | 4b6883362463c3ddfb8c7a574b9beba5220d120b (patch) | |
| tree | ff7a6388f015c0f6bd33478b1f0f50000a172a73 /src/components | |
| parent | 10c20c0c5b130c389680e37e4e4aba8e2abdbf1e (diff) | |
| download | coinos-ui-4b6883362463c3ddfb8c7a574b9beba5220d120b.tar.gz coinos-ui-4b6883362463c3ddfb8c7a574b9beba5220d120b.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> |
