mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
enh(settings): Set main heading for Apps
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
fd20198464
commit
291e56d272
2 changed files with 12 additions and 2 deletions
|
|
@ -24,6 +24,7 @@ import { translate as t } from '@nextcloud/l10n'
|
|||
|
||||
/** Enum of verification constants, according to Apps */
|
||||
export const APPS_SECTION_ENUM = Object.freeze({
|
||||
installed: t('settings', 'Your apps'),
|
||||
enabled: t('settings', 'Active apps'),
|
||||
disabled: t('settings', 'Disabled apps'),
|
||||
updates: t('settings', 'Updates'),
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
:to="{ name: 'apps' }"
|
||||
:exact="true"
|
||||
icon="icon-category-installed"
|
||||
:name="t('settings', 'Your apps')" />
|
||||
:name="$options.APPS_SECTION_ENUM.installed" />
|
||||
<NcAppNavigationItem id="app-category-enabled"
|
||||
:to="{ name: 'apps-category', params: { category: 'enabled' } }"
|
||||
icon="icon-category-enabled"
|
||||
|
|
@ -88,7 +88,9 @@
|
|||
</NcAppNavigation>
|
||||
|
||||
<!-- Apps list -->
|
||||
<NcAppContent class="app-settings-content" :class="{ 'icon-loading': loadingList }">
|
||||
<NcAppContent class="app-settings-content"
|
||||
:class="{ 'icon-loading': loadingList }"
|
||||
:page-heading="pageHeading">
|
||||
<AppList :category="category" :app="app" :search="searchQuery" />
|
||||
</NcAppContent>
|
||||
|
||||
|
|
@ -206,6 +208,13 @@ export default {
|
|||
},
|
||||
|
||||
computed: {
|
||||
pageHeading() {
|
||||
if (this.$options.APPS_SECTION_ENUM[this.category]) {
|
||||
return this.$options.APPS_SECTION_ENUM[this.category]
|
||||
}
|
||||
const category = this.$store.getters.getCategoryById(this.category)
|
||||
return category.displayName
|
||||
},
|
||||
loading() {
|
||||
return this.$store.getters.loading('categories')
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue