v3: fix notifications

This commit is contained in:
Matteo Pagliazzi
2016-05-17 19:12:39 +02:00
parent 30c9458493
commit a757df9f5b
11 changed files with 27 additions and 33 deletions

View File

@@ -180,9 +180,13 @@ habitrpg.controller('NotificationCtrl',
$rootScope.openModal('questInvitation', {controller:'PartyCtrl'});
});
$rootScope.$on('responseError', function(ev, error){
$rootScope.$on('responseError500', function(ev, error){
Notification.error(error);
});
$rootScope.$on('responseError', function(ev, error){
Notification.error(error, true);
});
$rootScope.$on('responseText', function(ev, error){
Notification.text(error);
});