diff options
| author | Adam Soltys <[email protected]> | 2026-09-21 19:40:21 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-21 19:40:21 -0700 |
| commit | efeab01cd99c5f57e7c904df96030fc518371fa2 (patch) | |
| tree | 0384996c539be5676d1e05bd473ce885af55d913 /src/routes | |
| parent | 671cdb3af944b5e6d39361f4a208547d0e9f7291 (diff) | |
| download | coinos-ui-efeab01cd99c5f57e7c904df96030fc518371fa2.tar.gz coinos-ui-efeab01cd99c5f57e7c904df96030fc518371fa2.zip | |
funds: remove the create, deposit, withdraw and gift buttons
Funds are retired, and the server now refuses deposits, withdrawals and
pre-authorizations outright, so every one of these buttons led to an
error. Gone: "Create a fund" on the send screen, and Add/Take funds plus
the gift link on a fund's page.
A fund's page still shows its balance, managers, share link and payment
history, so existing funds stay readable while they are settled out of
band.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/(app)/fund/[id]/+page.svelte | 31 | ||||
| -rw-r--r-- | src/routes/(app)/send/[...text]/+page.svelte | 10 |
2 files changed, 0 insertions, 41 deletions
diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte index da869fed..a22e4b93 100644 --- a/src/routes/(app)/fund/[id]/+page.svelte +++ b/src/routes/(app)/fund/[id]/+page.svelte @@ -79,43 +79,12 @@ </a> {/if} </div> - <div class="flex flex-wrap gap-2" data-sveltekit-prefetch="off"> - <div class="grow"> - <a href={`/send/fund/${id}`}> - <button class="btn"> - <iconify-icon noobserver icon="ph:plus-bold" width="32" - ></iconify-icon> - {$t("payments.addFunds")} - </button> - </a> - </div> - {#if !managers.length || managers.some((m) => m.id === user?.id)} - <div class="grow"> - <a href={`/fund/${id}/withdraw`}> - <button class="btn"> - <iconify-icon - noobserver - icon="ph:hand-coins-bold" - width="32" - flip="horizontal" - ></iconify-icon> - {$t("payments.takeFunds")} - </button> - </a> - </div> - {/if} - </div> <div class="flex gap-2" data-sveltekit-prefetch="off"> <a href={`/qr/${href}`} class="btn !w-auto grow"> <iconify-icon noobserver icon="ph:link-bold" width="32" ></iconify-icon> <div class="my-auto">{$t("payments.shareLink")}</div> </a> - <a href={`${$page.url.pathname}/gift`} class="btn !w-auto grow"> - <iconify-icon noobserver icon="ph:gift-bold" width="32" - ></iconify-icon> - <div class="my-auto">{$t("payments.giftLink")}</div> - </a> <!-- <a href={`/qr/${lnurlw}`} class="btn !w-auto grow"> --> <!-- <iconify-icon --> <!-- noobserver --> diff --git a/src/routes/(app)/send/[...text]/+page.svelte b/src/routes/(app)/send/[...text]/+page.svelte index 52b92501..b2b4d6bf 100644 --- a/src/routes/(app)/send/[...text]/+page.svelte +++ b/src/routes/(app)/send/[...text]/+page.svelte @@ -121,16 +121,6 @@ <div class="my-auto">{$t("user.send.next")}</div> </button> - <a href="/send/fund" class="block"> - <button type="button" class="btn"> - <iconify-icon - noobserver - icon="ph:lightning-fill" - class="text-yellow-300 text-2xl" - ></iconify-icon> - <div class="my-auto">{$t("payments.createFund")}</div> - </button> - </a> </form> {#if contacts.length} |
