Skip to content

Commit ac0a81a

Browse files
committed
Delete alerts on logout
1 parent b68ffeb commit ac0a81a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/client/admin/js/alert/AlertApp.js

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
}, timeout);
7171

7272
$rootScope.alerts.push(alert);
73+
},
74+
closeAll: function() {
75+
$rootScope.alerts = [];
7376
}
7477
};
7578
return alertService;

app/client/admin/js/ov/MainController.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
applicationService.destroy();
4545
userService.destroy();
4646
entityService.deleteCache();
47+
alertService.closeAll();
4748
$location.path('/login');
4849
}
4950

0 commit comments

Comments
 (0)