Make user sync after accepting or rejecting a quest

This commit is contained in:
Blade Barringer
2015-05-28 08:14:50 -05:00
parent dc8647d6ae
commit 42b482cb7e
3 changed files with 21 additions and 3 deletions

View File

@@ -150,7 +150,7 @@ habitrpg.controller('NotificationCtrl',
// Quest invitation modal
$rootScope.$watch('user.party.quest.RSVPNeeded', function(after, before){
if (after != true) return;
$rootScope.openModal('questInvitation');
$rootScope.openModal('questInvitation', {controller:'PartyCtrl'});
});
$rootScope.$on('responseError', function(ev, error){