aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/mainview.jsx.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/components/mainview.jsx.js')
-rw-r--r--web/src/js/components/mainview.jsx.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/web/src/js/components/mainview.jsx.js b/web/src/js/components/mainview.jsx.js
index 6e216b6a..acafdf34 100644
--- a/web/src/js/components/mainview.jsx.js
+++ b/web/src/js/components/mainview.jsx.js
@@ -1,10 +1,18 @@
var MainView = React.createClass({
mixins: [Navigation, State],
getInitialState: function () {
+ this.onQueryChange(Query.FILTER, function(){
+ this.state.view.recalculate(this.getViewFilt(), this.getViewSort());
+ }.bind(this));
return {
flows: []
};
},
+ getViewFilt: function(){
+ return Filt.parse(this.getQuery()[Query.FILTER]);
+ },
+ getViewSort: function(){
+ },
componentWillReceiveProps: function (nextProps) {
if (nextProps.flowStore !== this.props.flowStore) {
this.closeView();
@@ -12,7 +20,7 @@ var MainView = React.createClass({
}
},
openView: function (store) {
- var view = new StoreView(store);
+ var view = new StoreView(store, this.getViewFilt(), this.getViewSort());
this.setState({
view: view
});