summaryrefslogtreecommitdiffstats
path: root/settings/src
diff options
context:
space:
mode:
authorMichael Weimann <mail@michael-weimann.eu>2018-08-14 22:28:53 +0200
committerMichael Weimann <mail@michael-weimann.eu>2018-08-14 22:28:53 +0200
commitcfcdcbed357067ec1e2ec82363bcef461797aedf (patch)
tree2255557c0a6ac5bfd6c11dfaf30217753a9d064d /settings/src
parent55cf7c35e17e756223d04aae84939984ff653f5d (diff)
downloadnextcloud-server-cfcdcbed357067ec1e2ec82363bcef461797aedf.tar.gz
nextcloud-server-cfcdcbed357067ec1e2ec82363bcef461797aedf.zip
Fixes hiding the disabled users nav item if there are no disabled users
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Diffstat (limited to 'settings/src')
-rw-r--r--settings/src/views/Users.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/src/views/Users.vue b/settings/src/views/Users.vue
index c3fda5b8a01..31770051a0d 100644
--- a/settings/src/views/Users.vue
+++ b/settings/src/views/Users.vue
@@ -323,7 +323,7 @@ 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.counter === 0) {
+ if (!disabledGroup.utils.counter) {
groups.splice(disabledGroupIndex, 1); // remove disabled if empty
}
}