diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-01-22 19:09:08 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-26 23:47:09 +0100 |
commit | ed74f6a2bfc9975092040c4379f459d4c9442d3f (patch) | |
tree | 9161b66ce5a00781e28bb64393a41911dc7dc2d8 /src/web/js/actions | |
parent | adding basic bootstrap (diff) | |
download | newspipe-ed74f6a2bfc9975092040c4379f459d4c9442d3f.tar.gz newspipe-ed74f6a2bfc9975092040c4379f459d4c9442d3f.tar.bz2 newspipe-ed74f6a2bfc9975092040c4379f459d4c9442d3f.zip |
renaming, proper usage of props and state, filtering left menu
Diffstat (limited to 'src/web/js/actions')
-rw-r--r-- | src/web/js/actions/MenuActions.js | 6 | ||||
-rw-r--r-- | src/web/js/actions/MiddlePanelActions.js | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/web/js/actions/MenuActions.js b/src/web/js/actions/MenuActions.js index 558bd857..9502eb6d 100644 --- a/src/web/js/actions/MenuActions.js +++ b/src/web/js/actions/MenuActions.js @@ -14,19 +14,19 @@ var MenuActions = { }); }); }, - setFilterMenuAll: function() { + setFilterAll: function() { JarrDispatcher.dispatch({ component: 'menu', type: MenuActionTypes.MENU_FILTER_ALL, }); }, - setFilterMenuUnread: function() { + setFilterUnread: function() { JarrDispatcher.dispatch({ component: 'menu', type: MenuActionTypes.MENU_FILTER_UNREAD, }); }, - setFilterMenuError: function() { + setFilterError: function() { JarrDispatcher.dispatch({ type: MenuActionTypes.MENU_FILTER_ERROR, }); diff --git a/src/web/js/actions/MiddlePanelActions.js b/src/web/js/actions/MiddlePanelActions.js index 42c18b58..f750c900 100644 --- a/src/web/js/actions/MiddlePanelActions.js +++ b/src/web/js/actions/MiddlePanelActions.js @@ -33,19 +33,19 @@ var MiddlePanelActions = { parent_id: feed_id, }); }, - setFilterMiddlePanelAll: function() { + setFilterAll: function() { JarrDispatcher.dispatch({ component: 'middle_panel', type: MiddlePanelActionTypes.MIDDLE_PANEL_FILTER_ALL, }); }, - setFilterMiddlePanelUnread: function() { + setFilterUnread: function() { JarrDispatcher.dispatch({ component: 'middle_panel', type: MiddlePanelActionTypes.MIDDLE_PANEL_FILTER_UNREAD, }); }, - setFilterMiddlePanelUnread: function() { + setFilterLiked: function() { JarrDispatcher.dispatch({ type: MiddlePanelActionTypes.MIDDLE_PANEL_FILTER_LIKED, }); |