diff options
author | Simon L <szaimen@e.mail.de> | 2022-12-05 12:12:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-05 12:12:00 +0100 |
commit | e36e92bacefeac0cf28888b3e528ab97cbc2ed9f (patch) | |
tree | 19072ef3cf36989e873e548c9a934a1fd2d9ffaa /apps/settings | |
parent | 4196bf81e653c39d33d25c76652cc78dab8c5e1c (diff) | |
parent | bdb664c399c43eb725774fe41c787e6c8caa77b5 (diff) | |
download | nextcloud-server-e36e92bacefeac0cf28888b3e528ab97cbc2ed9f.tar.gz nextcloud-server-e36e92bacefeac0cf28888b3e528ab97cbc2ed9f.zip |
Merge pull request #35249 from nextcloud/fix/33854-User_management_pages_-_Window_title_must_change_when_switching_sidebar_sections
Set page title for each sidebar section through App management pages
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/src/router.js | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/apps/settings/src/router.js b/apps/settings/src/router.js index 121a9c90a2b..863bd49c32d 100644 --- a/apps/settings/src/router.js +++ b/apps/settings/src/router.js @@ -55,10 +55,26 @@ const router = new Router({ component: Users, props: true, name: 'users', + meta: { + title: () => { + return t('settings', 'Active users') + }, + }, children: [ { path: ':selectedGroup', name: 'group', + meta: { + title: (to) => { + if (to.params.selectedGroup === 'admin') { + return t('settings', 'Admins') + } + if (to.params.selectedGroup === 'disabled') { + return t('settings', 'Disabled users') + } + return decodeURIComponent(to.params.selectedGroup) + }, + }, component: Users, }, ], @@ -81,7 +97,8 @@ const router = new Router({ title: async (to) => { if (to.name === 'apps') { return t('settings', 'Your apps') - } else if (APPS_SECTION_ENUM[to.params.category]) { + } + if (APPS_SECTION_ENUM[to.params.category]) { return APPS_SECTION_ENUM[to.params.category] } await store.dispatch('getCategories') |