From e5f37b003d93a17c2a9958697269b2d3228d8830 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 4 Mar 2026 23:06:35 -0800 Subject: tuning --- src/components/InvoiceActions.svelte | 73 +++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 35 deletions(-) (limited to 'src/components/InvoiceActions.svelte') diff --git a/src/components/InvoiceActions.svelte b/src/components/InvoiceActions.svelte index 1c34d5ac..65d218fd 100644 --- a/src/components/InvoiceActions.svelte +++ b/src/components/InvoiceActions.svelte @@ -24,6 +24,9 @@ } = $props(); let { aid, account, address_type, type } = $derived(invoice); + let isOwn = $derived(user?.id === invoice?.user?.id); + let isCustodial = $derived(aid === user?.id); + let showTypeSwitch = $derived(isCustodial);
@@ -50,7 +53,7 @@
- {#if user?.id === invoice?.user?.id} + {#if isOwn}
- - -
- - - {#if !account?.seed && !(account?.pubkey && account?.fingerprint) && account?.type !== "ark"} + {#if showTypeSwitch} +
- {/if} -
- + {#if !account?.seed && !(account?.pubkey && account?.fingerprint) && account?.type !== "ark"} + + {/if} +
+ + + {/if}
-- cgit v1.2.3