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