mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Added behavior from #5239 (make quest completion modal always display before quest invite modal)
This commit is contained in:
@@ -148,7 +148,7 @@ habitrpg.controller('NotificationCtrl',
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Quest invitation modal
|
// Quest invitation modal
|
||||||
$rootScope.$watch('user.party.quest.RSVPNeeded', function(after, before){
|
$rootScope.$watch('user.party.quest.RSVPNeeded && (user.party.quest.completed == "" || user.party.quest.completed == undefined)', function(after, before){
|
||||||
if (after != true) return;
|
if (after != true) return;
|
||||||
$rootScope.openModal('questInvitation', {controller:'PartyCtrl'});
|
$rootScope.openModal('questInvitation', {controller:'PartyCtrl'});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user