generated from Seekra/repository-template
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:
@@ -88,9 +88,12 @@ onMounted(async () => {
|
||||
<div v-if="!settingsLoaded">
|
||||
{{ t('loading') }}
|
||||
</div>
|
||||
<div v-else>
|
||||
<div v-else-if="activeSection">
|
||||
<SettingsPage :setting="activeSectionContent" :path="activeSection" />
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ t('settings.noSectionSelected') }}
|
||||
</div>
|
||||
</div>
|
||||
</LeftSidebarLayout>
|
||||
</div>
|
||||
|
||||
+2
-1
@@ -54,6 +54,7 @@
|
||||
"link": {
|
||||
"ariaLabel": "Geht zur Einstellungsseite {page}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"noSectionSelected": "Kein Einstellungsabschnitt ist ausgewählt."
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -54,6 +54,7 @@
|
||||
"link": {
|
||||
"ariaLabel": "Goes to settings page {page}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"noSectionSelected": "No settings section is selected."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user