forked from 0x2620/pandora
fix #896 (Manage Users: Status bar says '0 robots' when 'Include Robots' is not checked)
This commit is contained in:
parent
d0e5290357
commit
d7bf50b45b
1 changed files with 8 additions and 4 deletions
|
@ -379,10 +379,14 @@ pandora.ui.usersDialog = function() {
|
||||||
$guestsCheckbox.value()
|
$guestsCheckbox.value()
|
||||||
? ' (' + Ox.formatNumber(data.users) + ' registered, '
|
? ' (' + Ox.formatNumber(data.users) + ' registered, '
|
||||||
+ Ox.formatNumber(data.guests) + ' guest'
|
+ Ox.formatNumber(data.guests) + ' guest'
|
||||||
+ (data.guests == 1 ? '' : 's') + ', '
|
+ (data.guests == 1 ? '' : 's')
|
||||||
|
+ (
|
||||||
|
$robotsCheckbox.value()
|
||||||
|
? ', '
|
||||||
+ Ox.formatNumber(data.robots) + ' robot'
|
+ Ox.formatNumber(data.robots) + ' robot'
|
||||||
+ (data.robots == 1 ? '' : 's')
|
+ (data.robots == 1 ? '' : 's')
|
||||||
+ ')'
|
: ''
|
||||||
|
) + ')'
|
||||||
: ''
|
: ''
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue