fix(settings): add section fallback

Added a simple message as a fallback that is used if no section is
selected.
This commit is contained in:
2026-07-28 20:10:17 +02:00
committed by jakob.scheid
parent 167ddbfb4e
commit 07901f9ab2
3 changed files with 8 additions and 3 deletions
+4 -1
View File
@@ -88,9 +88,12 @@ onMounted(async () => {
<div v-if="!settingsLoaded"> <div v-if="!settingsLoaded">
{{ t('loading') }} {{ t('loading') }}
</div> </div>
<div v-else> <div v-else-if="activeSection">
<SettingsPage :setting="activeSectionContent" :path="activeSection" /> <SettingsPage :setting="activeSectionContent" :path="activeSection" />
</div> </div>
<div v-else>
{{ t('settings.noSectionSelected') }}
</div>
</div> </div>
</LeftSidebarLayout> </LeftSidebarLayout>
</div> </div>
+2 -1
View File
@@ -54,6 +54,7 @@
"link": { "link": {
"ariaLabel": "Geht zur Einstellungsseite {page}" "ariaLabel": "Geht zur Einstellungsseite {page}"
} }
} },
"noSectionSelected": "Kein Einstellungsabschnitt ist ausgewählt."
} }
} }
+2 -1
View File
@@ -54,6 +54,7 @@
"link": { "link": {
"ariaLabel": "Goes to settings page {page}" "ariaLabel": "Goes to settings page {page}"
} }
} },
"noSectionSelected": "No settings section is selected."
} }
} }