From 268c7d30e4202d077b834ad37fc7600bb3a85195 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Mon, 12 Mar 2018 22:57:01 +0300 Subject: [PATCH] fix(gui): loading progress when open top --- src/app/top-page.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/top-page.js b/src/app/top-page.js index 7a12edc..81b1448 100644 --- a/src/app/top-page.js +++ b/src/app/top-page.js @@ -5,6 +5,7 @@ import TorrentLine from './torrent' import {List} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import RaisedButton from 'material-ui/RaisedButton'; +import LinearProgress from 'material-ui/LinearProgress'; export default class TopPage extends Page { constructor(props) { @@ -43,6 +44,13 @@ export default class TopPage extends Page { { window.router('/') }} /> + { + Object.keys(this.topTorrents).length == 0 + && +
+ +
+ } { this.types.map((type, index) => { const torrents = this.topTorrents[type];