From 52a59c8192d102fbd2df19cc2ec42323390e4cc3 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Wed, 30 Nov 2016 20:42:39 +0000 Subject: [PATCH] Revert "Display first login incentive reward when bailey is dismissed (#8234)" This reverts commit ac732b2c85853570b31d596d0a5054cd46bed2ec. --- .../js/controllers/notificationCtrl.js | 23 ++----------------- website/views/shared/modals/new-stuff.jade | 2 +- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/website/client-old/js/controllers/notificationCtrl.js b/website/client-old/js/controllers/notificationCtrl.js index 5093d46a26..0f302ed2c6 100644 --- a/website/client-old/js/controllers/notificationCtrl.js +++ b/website/client-old/js/controllers/notificationCtrl.js @@ -201,27 +201,8 @@ habitrpg.controller('NotificationCtrl', Notification.text(error); }); - function showLoginIncentive() { - var rewardData = { - reward: [Shared.content.quests.dustbunnies], - rewardKey: ['inventory_quest_scroll_dustbunnies'], - rewardText: Shared.content.quests.dustbunnies.text(), - message: window.env.t('checkinEarned'), - nextRewardAt: 1, - }; - Notification.showLoginIncentive(User.user, rewardData, Social.loadWidgets); - } - // Show new-stuff modal on load - if (User.user.flags.newStuff) { - var modalScope = $rootScope.$new(); - modalScope.showLoginIncentive = showLoginIncentive; - - $rootScope.openModal('newStuff', { - size:'lg', - scope: modalScope, - }); - } - + if (User.user.flags.newStuff) + $rootScope.openModal('newStuff', {size:'lg'}); } ]); diff --git a/website/views/shared/modals/new-stuff.jade b/website/views/shared/modals/new-stuff.jade index c559471dcb..3649ffc375 100644 --- a/website/views/shared/modals/new-stuff.jade +++ b/website/views/shared/modals/new-stuff.jade @@ -9,4 +9,4 @@ script(type='text/ng-template', id='modals/newStuff.html') div(ng-bind-html='latestBaileyMessage') .modal-footer button.btn.btn-default(ng-click='$close()')=env.t('cool') - button.btn.btn-warning(ng-click='dismissAlert(); $close(); showLoginIncentive()')=env.t('dismissAlert') + button.btn.btn-warning(ng-click='dismissAlert(); $close()')=env.t('dismissAlert')