diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-01-27 00:40:44 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-27 00:40:44 +0100 |
commit | fdbd077952abe34cde4f9888adaf719a6df7e298 (patch) | |
tree | 061a521504019d34f802976379282240e24a3847 /src | |
parent | mark all as read button (diff) | |
download | newspipe-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')
-rw-r--r-- | src/web/js/components/Menu.react.js | 11 |
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({ |