From 2ea5f1d34157ba12a97829be0dc981e875a8c763 Mon Sep 17 00:00:00 2001 From: Harald Mack Date: Mon, 26 Aug 2024 11:21:59 +0200 Subject: [PATCH] make bottombar more flexible --- src/lib/components/AbstractContent.svelte | 57 +++++++++++++---------- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/src/lib/components/AbstractContent.svelte b/src/lib/components/AbstractContent.svelte index 3477445f..9c7f7d48 100644 --- a/src/lib/components/AbstractContent.svelte +++ b/src/lib/components/AbstractContent.svelte @@ -10,42 +10,49 @@ // variables for communication upon hitting the page // FIXME: these are placeholders and must later be changed using contexts or other better mechanisms for inter component comunication - export let lastpage = '/'; - export let nextpage = '/'; - export let infopage = '/'; + export let lastpage = null; + export let nextpage = null; + export let infopage = null; -
+
{#if showBottomNavbar} - - - - - + {#if lastpage} + + {/if} + + {#if infopage} + + {/if} + {#if nextpage} + + {/if} {/if}