[DE mobile] Fix display only edit users

This commit is contained in:
Julia Svinareva 2019-05-29 19:13:00 +03:00
parent 2075a43a01
commit d3551bb26a

View file

@ -593,10 +593,10 @@ define([
_.each(editUsers, function(item){ _.each(editUsers, function(item){
users.push({color: item.asc_getColor(), id: item.id, idOriginal: item.idOriginal, name: item.userName, view: item.view}) users.push({color: item.asc_getColor(), id: item.id, idOriginal: item.idOriginal, name: item.userName, view: item.view})
}); });
_.each(users, function(item){ _.each(users.filter(function (itm) {return !itm.view;}), function(item){
if (usersSort.filter(function (itemFil) {return item.idOriginal === itemFil.idOriginal;}).length === 0) { if (usersSort.filter(function (itemFil) {return item.idOriginal === itemFil.idOriginal;}).length === 0) {
len = users.filter(function (itemFil) { len = users.filter(function (itemFil) {
return item.idOriginal === itemFil.idOriginal; return (item.idOriginal === itemFil.idOriginal && !itemFil.view);
}).length; }).length;
usersSort.push({color: item.color, id: item.id, idOriginal: item.idOriginal, name: item.name, view: item.view, len: len}) usersSort.push({color: item.color, id: item.id, idOriginal: item.idOriginal, name: item.name, view: item.view, len: len})
} }