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:
parent
55cf7c35e1
commit
cfcdcbed35
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue