aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/components
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-27 00:40:44 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-27 00:40:44 +0100
commitfdbd077952abe34cde4f9888adaf719a6df7e298 (patch)
tree061a521504019d34f802976379282240e24a3847 /src/web/js/components
parentmark all as read button (diff)
downloadnewspipe-fdbd077952abe34cde4f9888adaf719a6df7e298.tar.gz
newspipe-fdbd077952abe34cde4f9888adaf719a6df7e298.tar.bz2
newspipe-fdbd077952abe34cde4f9888adaf719a6df7e298.zip
revert optimize for menu
can't not rerender on load menu, but it never happens anyway
Diffstat (limited to 'src/web/js/components')
-rw-r--r--src/web/js/components/Menu.react.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/web/js/components/Menu.react.js b/src/web/js/components/Menu.react.js
index 09250706..becc7a2e 100644
--- a/src/web/js/components/Menu.react.js
+++ b/src/web/js/components/Menu.react.js
@@ -141,7 +141,16 @@ var MenuFilter = React.createClass({
setFilter: function(filter) {
this.setState({filter: filter});
MenuActions.setFilter(filter);
- }
+ },
+ componentDidMount: function() {
+ MenuStore.addChangeListener(this._onChange);
+ },
+ componentWillUnmount: function() {
+ MenuStore.removeChangeListener(this._onChange);
+ },
+ _onChange: function() {
+ this.setState({feed_in_error: MenuStore._datas.feed_in_error});
+ },
});
var Menu = React.createClass({
bgstack15