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')