diff options
| author | Adam Soltys <[email protected]> | 2024-12-22 23:09:36 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-22 23:09:36 -0800 |
| commit | ab82b405be6f2665c43518b4ad253becc8ab7430 (patch) | |
| tree | 6e6fa488e6d78aa15f38da081b203423e4bb9d92 /src/components/InvoiceActions.svelte | |
| parent | e2fcfdc4d608e260bb596952d8b54a7dcef05258 (diff) | |
| download | coinos-ui-ab82b405be6f2665c43518b4ad253becc8ab7430.tar.gz coinos-ui-ab82b405be6f2665c43518b4ad253becc8ab7430.zip | |
set memo
Diffstat (limited to 'src/components/InvoiceActions.svelte')
| -rw-r--r-- | src/components/InvoiceActions.svelte | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/components/InvoiceActions.svelte b/src/components/InvoiceActions.svelte index cd66fc36..23268a19 100644 --- a/src/components/InvoiceActions.svelte +++ b/src/components/InvoiceActions.svelte @@ -6,10 +6,10 @@ t, link, type, - types, showQr = $bindable(), txt, - toggleAmount + toggleAmount, + toggleMemo, } = $props(); </script> @@ -35,11 +35,19 @@ </a> {/if} + <button class="btn" onclick={toggleMemo}> + <iconify-icon icon="ph:chat-centered-text-bold" width="32"></iconify-icon> + <div class="my-auto"> + {t("invoice.setMemo")} + </div> + </button> + {#if txt.length > 120} <div class="w-full flex justify-center gap-2 flex-wrap"> <button class="btn" onclick={() => (showQr = !showQr)}> {#if showQr} - <iconify-icon icon="ph:text-align-center-bold" width="32"></iconify-icon> + <iconify-icon icon="ph:text-align-center-bold" width="32" + ></iconify-icon> {:else} <iconify-icon icon="ph:qr-code-bold" width="32"></iconify-icon> {/if} |
