forked from 0x2620/pandora
usersDialog: leave number of lists blank for guests and robots
This commit is contained in:
parent
6e1435734c
commit
ad1daf182c
1 changed files with 6 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue