Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- model.unread = res.val();
- if (model.unread.pm == null) {
- model.unread.pm = 0;
- }
- if (model.unread.tm == null) {
- model.unread.tm = 0;
- }
- if (user.role().isTM()) {
- model.unread.user++;
- model.unread.pm++;
- } else if (user.role().isUser()) {
- // model.unread.system++;
- model.unread.pm++;
- model.unread.tm++;
- } else if (user.role().isQA()) {
- model.unread.user++;
- model.unread.tm++;
- } else if(user.role().isSA()){
- model.unread.user++;
- model.unread.tm++;
- model.unread.pm++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement