aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/components/Menu.react.js
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-29 00:27:47 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-29 00:27:47 +0100
commit56ab5f6df51ff301a4dccc458eb83917bba49afc (patch)
tree8bd5edbfc9eb3f42b5ab8a407930b5f3ee544303 /src/web/js/components/Menu.react.js
parentredoing menu, sorting in place and not in python (diff)
downloadnewspipe-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.js9
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>
bgstack15