diff --git a/static/js/usersDialog.js b/static/js/usersDialog.js index 6673bb08..e54f0d63 100644 --- a/static/js/usersDialog.js +++ b/static/js/usersDialog.js @@ -379,10 +379,14 @@ pandora.ui.usersDialog = function() { $guestsCheckbox.value() ? ' (' + Ox.formatNumber(data.users) + ' registered, ' + Ox.formatNumber(data.guests) + ' guest' - + (data.guests == 1 ? '' : 's') + ', ' - + Ox.formatNumber(data.robots) + ' robot' - + (data.robots == 1 ? '' : 's') - + ')' + + (data.guests == 1 ? '' : 's') + + ( + $robotsCheckbox.value() + ? ', ' + + Ox.formatNumber(data.robots) + ' robot' + + (data.robots == 1 ? '' : 's') + : '' + ) + ')' : '' ) );