mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Revert "Display first login incentive reward when bailey is dismissed (#8234)"
This reverts commit ac732b2c85.
This commit is contained in:
@@ -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'});
|
||||
}
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user