diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-12-07 18:53:32 -0800 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-12-07 18:53:32 -0800 |
commit | 32fad8f692b44f493d576d4caf27939607c6b42a (patch) | |
tree | c32745fa41e21e919a7907499a49ad6c74cc466c /apps/settings/src | |
parent | bf3a8d16f91c2ec65caedf99225141672307d007 (diff) | |
download | nextcloud-server-32fad8f692b44f493d576d4caf27939607c6b42a.tar.gz nextcloud-server-32fad8f692b44f493d576d4caf27939607c6b42a.zip |
enh(settings): Set main heading for Apps
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/constants/AppsConstants.js | 1 | ||||
-rw-r--r-- | apps/settings/src/views/Apps.vue | 13 |
2 files changed, 12 insertions, 2 deletions
diff --git a/apps/settings/src/constants/AppsConstants.js b/apps/settings/src/constants/AppsConstants.js index aec06aded3a..8df7d44815a 100644 --- a/apps/settings/src/constants/AppsConstants.js +++ b/apps/settings/src/constants/AppsConstants.js @@ -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'), diff --git a/apps/settings/src/views/Apps.vue b/apps/settings/src/views/Apps.vue index 1a2fbcb1538..b5cfad5632f 100644 --- a/apps/settings/src/views/Apps.vue +++ b/apps/settings/src/views/Apps.vue @@ -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') }, |