From ba9ed61333951410c85e0d3e13f3064576506230 Mon Sep 17 00:00:00 2001 From: Schenky Date: Tue, 14 Feb 2023 16:02:09 +0100 Subject: [PATCH] Update 2 14.2.2023 --- src/routes/profile/profile.svelte | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/routes/profile/profile.svelte b/src/routes/profile/profile.svelte index 92e8782..aefbb9a 100644 --- a/src/routes/profile/profile.svelte +++ b/src/routes/profile/profile.svelte @@ -31,7 +31,7 @@ itms: [ { icon: Help, text: 'Help', link:"/"}, { icon: Warning, text: 'Terms of Service', link:"/"}, - { icon: Logout, text: 'Log out', link:"/"}, + { icon: Logout, text: 'Log out', link: () => user.deleteSessions() },, ], }, ] @@ -54,11 +54,19 @@ {#each items as { title, itms }}
{title}
{#each itms as { icon, text, link}} + {#if (typeof link === 'function')} - {text} + - + {:else} + + + {text} + + + {/if} + {/each} {/each}