Fixes hiding the disabled users nav item if there are no disabled users

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
Michael Weimann 2018-08-14 22:28:53 +02:00
parent 55cf7c35e1
commit cfcdcbed35
No known key found for this signature in database
GPG Key ID: 34F0524D4DA694A1
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -323,7 +323,7 @@ export default {
if (disabledGroup && disabledGroup.text) { if (disabledGroup && disabledGroup.text) {
disabledGroup.text = t('settings', 'Disabled users'); // rename disabled group disabledGroup.text = t('settings', 'Disabled users'); // rename disabled group
disabledGroup.icon = 'icon-disabled-users'; // set icon disabledGroup.icon = 'icon-disabled-users'; // set icon
if (disabledGroup.utils.counter === 0) { if (!disabledGroup.utils.counter) {
groups.splice(disabledGroupIndex, 1); // remove disabled if empty groups.splice(disabledGroupIndex, 1); // remove disabled if empty
} }
} }