Don't display Scenarii menu if no scenario

This commit is contained in:
nemunaire 2024-09-18 10:47:34 +02:00
parent 3d1b318091
commit 180ec5e29d

View File

@ -14,6 +14,7 @@
import { myThemes, themes } from '$lib/stores/mythemes.js';
</script>
{#if $themes.length > 0 && ($themes[0].id != 0 || $themes.length > 1)}
<Dropdown nav inNavbar active={$current_theme && $current_theme.id != 0}>
<DropdownToggle nav caret>
<Icon name="tv" />
@ -54,6 +55,7 @@
</div>
</DropdownMenu>
</Dropdown>
{/if}
{#if $themesStore && $themesStore["0"] && $themesStore["0"].exercices}
<Dropdown nav inNavbar active={$current_theme && $current_theme && $current_theme.id == 0}>
<DropdownToggle nav caret>