aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Account.svelte
diff options
context:
space:
mode:
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