aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-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