mirror of
https://github.com/nextcloud/server.git
synced 2026-04-11 20:16:54 -04:00
enh(settings): Set main heading for User management
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
4cbc8b69b4
commit
bf3a8d16f9
1 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue