diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-01-29 00:27:47 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-29 00:27:47 +0100 |
commit | 56ab5f6df51ff301a4dccc458eb83917bba49afc (patch) | |
tree | 8bd5edbfc9eb3f42b5ab8a407930b5f3ee544303 /src/web/js/components/Menu.react.js | |
parent | redoing menu, sorting in place and not in python (diff) | |
download | newspipe-56ab5f6df51ff301a4dccc458eb83917bba49afc.tar.gz newspipe-56ab5f6df51ff301a4dccc458eb83917bba49afc.tar.bz2 newspipe-56ab5f6df51ff301a4dccc458eb83917bba49afc.zip |
wip right panel
Diffstat (limited to 'src/web/js/components/Menu.react.js')
-rw-r--r-- | src/web/js/components/Menu.react.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/web/js/components/Menu.react.js b/src/web/js/components/Menu.react.js index d0bd719d..0d739e4e 100644 --- a/src/web/js/components/Menu.react.js +++ b/src/web/js/components/Menu.react.js @@ -201,6 +201,9 @@ var Menu = React.createClass({ var feeds = []; var unread = 0; this.state.categories[cat_id].feeds.map(function(feed_id) { + if(this.state.feeds[feed_id].error_count > 3) { + feed_in_error = true; + } unread += this.state.feeds[feed_id].unread; feeds.push(this.state.feeds[feed_id]); }.bind(this)); @@ -213,10 +216,10 @@ var Menu = React.createClass({ unread={unread} />); } - return (<Col xsHidden smHidden md={3} lg={2} data-spy="affix" - id="menu" className="show-grid sidebar"> + return (<Col xsHidden smHidden md={3} lg={2} + id="menu" className="sidebar"> <MenuFilter filter={this.state.filter} - feed_in_error={this.state.feed_in_error} /> + feed_in_error={feed_in_error} /> {rmPrntFilt} {categories} </Col> |