mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Adjustments to PR #5298
* Put watch on $scope * Check for quest.completed !== true or false * Add test for quest invite modal watch
This commit is contained in:
@@ -154,7 +154,7 @@ habitrpg.controller('NotificationCtrl',
|
||||
});
|
||||
|
||||
// Quest invitation modal
|
||||
$rootScope.$watch('user.party.quest.RSVPNeeded && (user.party.quest.completed == "" || user.party.quest.completed == undefined)', function(after, before){
|
||||
$scope.$watch('user.party.quest.RSVPNeeded && (user.party.quest.completed !== false && user.party.quest.completed !== true)', function(after, before){
|
||||
if (after != true) return;
|
||||
$rootScope.openModal('questInvitation', {controller:'PartyCtrl'});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user