Display loading indicator for entire application, rather than

individual components.
This commit is contained in:
John Furrow
2016-03-19 20:17:37 +01:00
parent c3d6bee205
commit ff728429d8
13 changed files with 203 additions and 30 deletions
+4 -1
View File
@@ -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);