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 | bf3a8d16f91c2ec65caedf99225141672307d007 (patch) | |
tree | 8fba3ec4035a96ee5e27e39937402311acd7bfeb /apps/settings/src | |
parent | 4cbc8b69b4a6ab44b041cb79135fa7aba4e34f06 (diff) | |
download | nextcloud-server-bf3a8d16f91c2ec65caedf99225141672307d007.tar.gz nextcloud-server-bf3a8d16f91c2ec65caedf99225141672307d007.zip |
enh(settings): Set main heading for User management
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/views/Users.vue | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/settings/src/views/Users.vue b/apps/settings/src/views/Users.vue index 831663248a3..dc17b9f9362 100644 --- a/apps/settings/src/views/Users.vue +++ b/apps/settings/src/views/Users.vue @@ -127,7 +127,7 @@ </template> </NcAppNavigation> - <NcAppContent> + <NcAppContent :page-heading="pageHeading"> <UserList :selected-group="selectedGroupDecoded" :external-actions="externalActions" /> </NcAppContent> @@ -212,6 +212,17 @@ export default { }, computed: { + pageHeading() { + if (this.selectedGroupDecoded === null) { + return t('settings', 'Active users') + } + const matchHeading = { + admin: t('settings', 'Admins'), + disabled: t('settings', 'Disabled users'), + } + return matchHeading[this.selectedGroupDecoded] ?? t('settings', 'User group: {group}', { group: this.selectedGroupDecoded }) + }, + showConfig() { return this.$store.getters.getShowConfig }, |