feat(home): refresh new torrents and opened tickets status when torrent was reviewed or tickets was replied.

This commit is contained in:
OldHawk
2018-06-10 18:04:03 +08:00
parent c785b0dd48
commit d0f27f9704
4 changed files with 25 additions and 8 deletions

View File

@@ -154,6 +154,20 @@
vm.getCountUnread();
});
/**
* new-torrents-changed
*/
$scope.$on('new-torrents-changed', function (event, args) {
vm.getNewTorrentsCount();
});
/**
* opened-tickets-changed
*/
$scope.$on('opened-tickets-changed', function (event, args) {
vm.getTicketsOpenedCount();
});
/**
* user-invitations-changed
*/