mirror of
https://github.com/zoriya/flood.git
synced 2026-05-26 08:45:09 +00:00
Fetch status and tracker count on mount
This commit is contained in:
@@ -43,6 +43,7 @@ export default class StatusFilters extends React.Component {
|
||||
TorrentFilterStore.listen(EventTypes.CLIENT_TORRENT_STATUS_COUNT_CHANGE, this.onTorrentStatusCountChange);
|
||||
TorrentFilterStore.listen(EventTypes.UI_TORRENTS_FILTER_STATUS_CHANGE, this.onStatusFilterChange);
|
||||
TorrentFilterStore.listen(EventTypes.UI_TORRENTS_FILTER_TRACKER_CHANGE, this.onTrackerFilterChange);
|
||||
TorrentFilterStore.fetchTorrentStatusCount();
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
||||
@@ -48,6 +48,7 @@ export default class TrackerFilters extends React.Component {
|
||||
TorrentFilterStore.unlisten(EventTypes.CLIENT_TORRENT_TRACKER_COUNT_CHANGE, this.onTorrentTrackerCountChange);
|
||||
TorrentFilterStore.unlisten(EventTypes.UI_TORRENTS_FILTER_TRACKER_CHANGE, this.onTrackerFilterChange);
|
||||
TorrentFilterStore.unlisten(EventTypes.UI_TORRENTS_FILTER_STATUS_CHANGE, this.onStatusFilterChange);
|
||||
TorrentFilterStore.fetchTorrentTrackerCount();
|
||||
}
|
||||
|
||||
handleClick(filter) {
|
||||
|
||||
Reference in New Issue
Block a user