From: Christopher Ng Date: Fri, 8 Dec 2023 02:53:32 +0000 (-0800) Subject: enh(settings): Set main heading for Apps X-Git-Tag: v29.0.0beta1~676^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=32fad8f692b44f493d576d4caf27939607c6b42a;p=nextcloud-server.git enh(settings): Set main heading for Apps Signed-off-by: Christopher Ng --- 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" /> - + @@ -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') },