mirror of
https://github.com/zoriya/flood.git
synced 2026-06-03 03:12:14 +00:00
Fix torrent storing & livereload
This commit is contained in:
@@ -174,8 +174,7 @@ class TorrentStoreClass extends BaseStore {
|
||||
|
||||
startPollingTorrents() {
|
||||
this.pollTorrentsIntervalID = setInterval(
|
||||
this.fetchTorrents.bind(this),
|
||||
config.pollInterval
|
||||
this.fetchTorrents.bind(this), config.pollInterval
|
||||
);
|
||||
}
|
||||
|
||||
@@ -191,6 +190,11 @@ class TorrentStoreClass extends BaseStore {
|
||||
|
||||
triggerTorrentsFilter() {
|
||||
this.filterTorrents();
|
||||
this.emit(EventTypes.CLIENT_TORRENTS_REQUEST_SUCCESS);
|
||||
}
|
||||
|
||||
triggerTorrentsSort() {
|
||||
this.sortTorrents(this.torrents);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -224,6 +228,8 @@ TorrentStore.dispatcherID = AppDispatcher.register((payload) => {
|
||||
case ActionTypes.UI_CLICK_TORRENT:
|
||||
TorrentStore.setSelectedTorrents(action.data.event, action.data.hash);
|
||||
break;
|
||||
case ActionTypes.UI_SET_TORRENT_SORT:
|
||||
TorrentStore.triggerTorrentsSort();
|
||||
case ActionTypes.UI_SET_TORRENT_STATUS_FILTER:
|
||||
case ActionTypes.UI_SET_TORRENT_TRACKER_FILTER:
|
||||
case ActionTypes.UI_SET_TORRENT_SEARCH_FILTER:
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"livereload": "NODE_ENV='development' && ./node_modules/.bin/gulp livereload",
|
||||
"livereload": "NODE_ENV='development' ./node_modules/.bin/gulp livereload",
|
||||
"start": "npm prune && npm install && ./node_modules/.bin/gulp dist && nodemon ./server/bin/www"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user