mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Made quest invite modal pop-up on user sync (rewards display currently nonfunctional)
This commit is contained in:
@@ -148,8 +148,9 @@ habitrpg.controller('NotificationCtrl',
|
||||
});
|
||||
|
||||
// Quest invitation modal
|
||||
$rootScope.$watch('party.quest.key && !party.quest.active && party.quest.members[user._id] == undefined', function(after, before){
|
||||
if (after == before || after != true) return;
|
||||
$rootScope.$watch('user.party.quest.invited == true', function(after, before){
|
||||
if (after != true) return;
|
||||
$rootScope.party.$get();
|
||||
$rootScope.openModal('questInvitation');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user