Revert "Display first login incentive reward when bailey is dismissed (#8234)"

This reverts commit ac732b2c85.
This commit is contained in:
Sabe Jones
2016-11-30 20:42:39 +00:00
parent c1a860494d
commit 52a59c8192
2 changed files with 3 additions and 22 deletions

View File

@@ -201,27 +201,8 @@ habitrpg.controller('NotificationCtrl',
Notification.text(error); 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 // Show new-stuff modal on load
if (User.user.flags.newStuff) { if (User.user.flags.newStuff)
var modalScope = $rootScope.$new(); $rootScope.openModal('newStuff', {size:'lg'});
modalScope.showLoginIncentive = showLoginIncentive;
$rootScope.openModal('newStuff', {
size:'lg',
scope: modalScope,
});
}
} }
]); ]);

View File

@@ -9,4 +9,4 @@ script(type='text/ng-template', id='modals/newStuff.html')
div(ng-bind-html='latestBaileyMessage') div(ng-bind-html='latestBaileyMessage')
.modal-footer .modal-footer
button.btn.btn-default(ng-click='$close()')=env.t('cool') 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')