aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Account.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-04 14:05:47 -0800
committerAdam Soltys <[email protected]>2026-02-11 15:34:19 -0800
commit59fbd17aad12acfa19eb730c4ede67d50962ba9b (patch)
treebbd4bbf37605d4d59d290bb2ab6755a278b0ee04 /src/components/Account.svelte
parent78c201d8d9d2f3ec07f6ea36201977846e29ccd9 (diff)
downloadcoinos-ui-59fbd17aad12acfa19eb730c4ede67d50962ba9b.tar.gz
coinos-ui-59fbd17aad12acfa19eb730c4ede67d50962ba9b.zip
rename account route
Diffstat (limited to 'src/components/Account.svelte')
-rw-r--r--src/components/Account.svelte9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/Account.svelte b/src/components/Account.svelte
index 86eb0f74..04ff97ae 100644
--- a/src/components/Account.svelte
+++ b/src/components/Account.svelte
@@ -65,6 +65,13 @@
e.preventDefault();
setAccount(e, "/payments");
};
+
+ let goSettings = (e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ document.cookie = `aid=${id}; path=/; max-age=86400`;
+ goto(`/account/${id}`);
+ };
</script>
<div
@@ -81,7 +88,7 @@
href={`/account/${id}`}
class="font-bold text-lg opacity-60 hover:opacity-100 transition-opacity flex items-center gap-2 shrink-0"
aria-label="Account settings"
- onclick={(e) => e.stopPropagation()}
+ onclick={goSettings}
>
{#if isArk}
<img