mirror of
https://github.com/zoriya/flood.git
synced 2026-06-04 03:27:15 +00:00
Display loading indicator for entire application, rather than
individual components.
This commit is contained in:
@@ -137,6 +137,10 @@ class TorrentStoreClass extends BaseStore {
|
||||
this.emit(EventTypes.UI_TORRENT_SELECTION_CHANGE);
|
||||
}
|
||||
|
||||
handleFetchTorrentsError(action) {
|
||||
console.log(action);
|
||||
}
|
||||
|
||||
handleFetchTorrentsSuccess(torrents) {
|
||||
this.sortTorrents(torrents);
|
||||
this.filterTorrents();
|
||||
@@ -216,7 +220,6 @@ TorrentStore.dispatcherID = AppDispatcher.register((payload) => {
|
||||
break;
|
||||
case ActionTypes.CLIENT_FETCH_TORRENTS_ERROR:
|
||||
TorrentStore.handleFetchTorrentsError();
|
||||
console.log(action);
|
||||
break;
|
||||
case ActionTypes.UI_CLICK_TORRENT:
|
||||
TorrentStore.setSelectedTorrents(action.data.event, action.data.hash);
|
||||
|
||||
Reference in New Issue
Block a user