</template>
</NcAppNavigation>
- <NcAppContent>
+ <NcAppContent :page-heading="pageHeading">
<UserList :selected-group="selectedGroupDecoded"
:external-actions="externalActions" />
</NcAppContent>
},
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
},