usersDialog: leave number of lists blank for guests and robots

This commit is contained in:
rolux 2012-04-19 14:30:09 +00:00
parent 6e1435734c
commit ad1daf182c

View file

@ -173,7 +173,7 @@ pandora.ui.usersDialog = function() {
},
{
align: 'center',
format: function(value, data) {
format: function(value) {
return Ox.Theme.formatColorLevel(
userLevels.indexOf(Ox.toTitleCase(value)),
userLevels,
@ -311,8 +311,12 @@ pandora.ui.usersDialog = function() {
width: 150
},
{
id: 'numberoflists',
align: 'right',
format: function(value, data) {
return ['guest', 'robot'].indexOf(data.level) > -1
? '' : value;
},
id: 'numberoflists',
operator: '-',
title: 'Lists',
visible: true,