mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-04 06:06:07 +00:00
web/SettingsNavSection: make section title optional
This commit is contained in:
parent
404d031117
commit
ffaead1f4c
|
@ -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