diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-05 07:46:57 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-05 07:46:57 +0200 |
commit | 4719ff1b6adda86debaebd4b1653f7b6bba10b0c (patch) | |
tree | a508faea3521c0332d082bf63ed8bcb955a931bd | |
parent | By default only list feeds with unread articles. (diff) | |
download | newspipe-4719ff1b6adda86debaebd4b1653f7b6bba10b0c.tar.gz newspipe-4719ff1b6adda86debaebd4b1653f7b6bba10b0c.tar.bz2 newspipe-4719ff1b6adda86debaebd4b1653f7b6bba10b0c.zip |
By default only list feeds with unread articles. (2)
-rw-r--r-- | src/web/js/components/Menu.react.js | 4 | ||||
-rw-r--r-- | src/web/js/stores/MenuStore.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/web/js/components/Menu.react.js b/src/web/js/components/Menu.react.js index d4752a94..6fa4071d 100644 --- a/src/web/js/components/Menu.react.js +++ b/src/web/js/components/Menu.react.js @@ -128,7 +128,7 @@ var CategoryGroup = React.createClass({ if(this.props.unread) { unread = <Badge pullRight>{this.props.unread}</Badge>; } - var ctrl = (<Glyphicon onClick={this.toggleFolding} pullLeft + var ctrl = (<Glyphicon onClick={this.toggleFolding} glyph={this.state.folded?"menu-right":"menu-down"} /> ); @@ -221,7 +221,7 @@ var MenuFilter = React.createClass({ var Menu = React.createClass({ getInitialState: function() { - return {filter: 'unread', categories: {}, feeds: {}, + return {filter: 'all', categories: {}, feeds: {}, all_folded: false, active_type: null, active_id: null}; }, render: function() { diff --git a/src/web/js/stores/MenuStore.js b/src/web/js/stores/MenuStore.js index 1cbbbda7..f1b83dce 100644 --- a/src/web/js/stores/MenuStore.js +++ b/src/web/js/stores/MenuStore.js @@ -6,7 +6,7 @@ var assign = require('object-assign'); var MenuStore = assign({}, EventEmitter.prototype, { - _datas: {filter: 'all', feeds: {}, categories: {}, categories_order: [], + _datas: {filter: 'unread', feeds: {}, categories: {}, categories_order: [], active_type: null, active_id: null, is_admin: false, crawling_method: 'classic', all_unread_count: 0, max_error: 0, error_threshold: 0, |