From de21ec8cf51c253a4eda21bf6fc70c64635d68f1 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 12 Feb 2015 07:52:52 -0600 Subject: [PATCH] fix(event): Card notif display --- public/js/controllers/authCtrl.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/js/controllers/authCtrl.js b/public/js/controllers/authCtrl.js index 6bdd4c0b83..2cf594965d 100644 --- a/public/js/controllers/authCtrl.js +++ b/public/js/controllers/authCtrl.js @@ -84,12 +84,14 @@ angular.module('habitrpg') $scope._expandedMenu = ($scope._expandedMenu == menu) ? null : menu; }; - function selectNotificationValue(mysteryValue, invitationValue, unallocatedValue, messageValue, noneValue) { + function selectNotificationValue(mysteryValue, invitationValue, holidayCardValue, unallocatedValue, messageValue, noneValue) { var user = $scope.user; if (user.purchased && user.purchased.plan && user.purchased.plan.mysteryItems && user.purchased.plan.mysteryItems.length) { return mysteryValue; } else if ((user.invitations.party && user.invitations.party.id) || (user.invitations.guilds && user.invitations.guilds.length > 0)) { return invitationValue; + } else if ((user.items.special.valentineReceived[0] || user.items.special.nyeReceived[0])) { + return holidayCardValue; } else if (user.flags.classSelected && !(user.preferences && user.preferences.disableClasses) && user.stats.points) { return unallocatedValue; } else if (!(_.isEmpty(user.newMessages))) { @@ -103,13 +105,14 @@ angular.module('habitrpg') return selectNotificationValue( "glyphicon-gift", "glyphicon-user", + "glyphicon-envelope", "glyphicon-plus-sign", "glyphicon-comment", "glyphicon-comment inactive"); }; $scope.hasNoNotifications = function() { - return selectNotificationValue(false, false, false, false, true); + return selectNotificationValue(false, false, false, false, false, true); } // ------ Social ----------