feat(sharing): More opt outs

Also fixes a bug where "Display Now" didn't work for pets with a space in their name.
This commit is contained in:
Sabe Jones
2015-10-28 17:48:16 -04:00
parent aad3e5ade6
commit 22caaa7eda
7 changed files with 36 additions and 12 deletions

View File

@@ -65,7 +65,7 @@ habitrpg.controller('NotificationCtrl',
if (after > before) {
Notification.lvl();
$rootScope.playSound('Level_Up');
$rootScope.openModal('levelUp', {controller:'UserCtrl', size:'sm'});
if (!User.user.preferences.suppressModals.levelUp) $rootScope.openModal('levelUp', {controller:'UserCtrl', size:'sm'});
}
});