From 09e511ca101a03766ca76929d9eefea43288b905 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 26 Oct 2023 13:57:42 +0200 Subject: [PATCH] UX: actually show 'finish' and hide 'back'-button on the first slide --- src/UI/Walkthrough/Walkthrough.svelte | 5 +++-- src/UI/Walkthrough/WalkthroughStep.svelte | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/UI/Walkthrough/Walkthrough.svelte b/src/UI/Walkthrough/Walkthrough.svelte index 03858d84b..bbb5d0661 100644 --- a/src/UI/Walkthrough/Walkthrough.svelte +++ b/src/UI/Walkthrough/Walkthrough.svelte @@ -1,6 +1,6 @@ - step(-1)} on:next={() => step(1)}> + step(-1)} on:next={() => step(1)} isFirst={currentPage === 0} islast={currentPage + 1 === pages.length}> diff --git a/src/UI/Walkthrough/WalkthroughStep.svelte b/src/UI/Walkthrough/WalkthroughStep.svelte index 77bbd833f..34c298e67 100644 --- a/src/UI/Walkthrough/WalkthroughStep.svelte +++ b/src/UI/Walkthrough/WalkthroughStep.svelte @@ -21,6 +21,8 @@ dispatch("back")}> Back + {:else} +
{/if} dispatch("next")}> {#if islast}