summaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-12-07 18:53:32 -0800
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-12-08 16:15:40 +0000
commitfd201984641a1d07d6b2f9fec6f22aefc39f2148 (patch)
treeb67a4b17db5ca9443e991a9408f7fce6d69d4719 /apps/settings
parent478c8ca030333bb1e9d12a1020ec155488bafa65 (diff)
downloadnextcloud-server-fd201984641a1d07d6b2f9fec6f22aefc39f2148.tar.gz
nextcloud-server-fd201984641a1d07d6b2f9fec6f22aefc39f2148.zip
enh(settings): Set main heading for User management
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/src/views/Users.vue13
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
},