summaryrefslogtreecommitdiffstats
path: root/settings/src/views/Users.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-06 10:53:40 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-06 11:11:11 +0100
commit9f532df1a4abecf3d0e8fe329d84bdfe75376642 (patch)
tree9ed719c4076b6db774202a15a0aa7ca0ccc5bfa3 /settings/src/views/Users.vue
parent54a30a4b81700570303eaae03810f6ef553d66a2 (diff)
downloadnextcloud-server-9f532df1a4abecf3d0e8fe329d84bdfe75376642.tar.gz
nextcloud-server-9f532df1a4abecf3d0e8fe329d84bdfe75376642.zip
Show disabled even if empty if ldap enabled
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src/views/Users.vue')
-rw-r--r--settings/src/views/Users.vue11
1 files changed, 7 insertions, 4 deletions
diff --git a/settings/src/views/Users.vue b/settings/src/views/Users.vue
index b213e234f32..de88851234d 100644
--- a/settings/src/views/Users.vue
+++ b/settings/src/views/Users.vue
@@ -315,8 +315,8 @@ export default {
// group name
item.text = group.name;
- // users count
- if (group.usercount - group.disabled > 0) {
+ // users count for all groups
+ if (group.usercount - group.disabled > 0 || group.usercount === -1) {
item.utils.counter = group.usercount - group.disabled;
}
@@ -363,8 +363,11 @@ export default {
if (disabledGroup && disabledGroup.text) {
disabledGroup.text = t('settings', 'Disabled users'); // rename disabled group
disabledGroup.icon = 'icon-disabled-users'; // set icon
- if (disabledGroup.utils && disabledGroup.utils.counter > 0) {
- groups.unshift(disabledGroup); // add disabled if not empty
+ if (disabledGroup.utils && (
+ disabledGroup.utils.counter > 0 // add disabled if not empty
+ || disabledGroup.utils.counter === -1) // add disabled if ldap enabled
+ ) {
+ groups.unshift(disabledGroup);
}
}