mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/SettingsNavSection: make section title optional
This commit is contained in:
parent
2b907e5684
commit
49f9057b6b
1 changed files with 6 additions and 2 deletions
|
@ -1,11 +1,15 @@
|
|||
<script lang="ts">
|
||||
import { t } from "$lib/i18n/translations";
|
||||
|
||||
export let sectionTitle: string;
|
||||
export let sectionTitle: string = "";
|
||||
</script>
|
||||
|
||||
<div id="settings-section">
|
||||
<div id="settings-section-title">{$t(`settings.section.${sectionTitle}`)}</div>
|
||||
{#if sectionTitle}
|
||||
<div id="settings-section-title">
|
||||
{$t(`settings.section.${sectionTitle}`)}
|
||||
</div>
|
||||
{/if}
|
||||
<div id="settings-section-categories">
|
||||
<slot></slot>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue