diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-01-26 22:43:18 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-26 23:47:57 +0100 |
commit | df8d1742d7e8ac6a7d238799dda05557fd0d17a9 (patch) | |
tree | becc78a3f23e77c5e8b126d8080ca83214830dc7 /src/web/js/actions/MenuActions.js | |
parent | ressucitating old js (diff) | |
download | newspipe-df8d1742d7e8ac6a7d238799dda05557fd0d17a9.tar.gz newspipe-df8d1742d7e8ac6a7d238799dda05557fd0d17a9.tar.bz2 newspipe-df8d1742d7e8ac6a7d238799dda05557fd0d17a9.zip |
optim on filter, not rerendering
Diffstat (limited to 'src/web/js/actions/MenuActions.js')
-rw-r--r-- | src/web/js/actions/MenuActions.js | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/web/js/actions/MenuActions.js b/src/web/js/actions/MenuActions.js index bf039fd1..4266c207 100644 --- a/src/web/js/actions/MenuActions.js +++ b/src/web/js/actions/MenuActions.js @@ -15,25 +15,12 @@ var MenuActions = { }); }); }, - setFilterAll: function() { + setFilter: function(filter) { JarrDispatcher.dispatch({ type: ActionTypes.MENU_FILTER, - filter: 'all', + filter: filter, }); }, - setFilterUnread: function() { - JarrDispatcher.dispatch({ - type: ActionTypes.MENU_FILTER, - filter: 'unread', - }); - }, - setFilterError: function() { - JarrDispatcher.dispatch({ - type: ActionTypes.MENU_FILTER, - filter: 'error', - }); - }, - }; module.exports = MenuActions; |