Don't display Scenarii menu if no scenario
This commit is contained in:
parent
3d1b318091
commit
180ec5e29d
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user