aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/actions/MenuActions.js
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-02-26 11:27:31 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-02-26 11:27:31 +0100
commit62b3afeeedfe054345f86093e2d243e956c1e3c9 (patch)
treebbd58f5c8c07f5d87b1c1cca73fa1d5af6178f48 /src/web/js/actions/MenuActions.js
parentUpdated Python dependencies. (diff)
downloadnewspipe-62b3afeeedfe054345f86093e2d243e956c1e3c9.tar.gz
newspipe-62b3afeeedfe054345f86093e2d243e956c1e3c9.tar.bz2
newspipe-62b3afeeedfe054345f86093e2d243e956c1e3c9.zip
The project is now using Poetry.
Diffstat (limited to 'src/web/js/actions/MenuActions.js')
-rw-r--r--src/web/js/actions/MenuActions.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/web/js/actions/MenuActions.js b/src/web/js/actions/MenuActions.js
deleted file mode 100644
index 824610d8..00000000
--- a/src/web/js/actions/MenuActions.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var JarrDispatcher = require('../dispatcher/JarrDispatcher');
-var ActionTypes = require('../constants/JarrConstants');
-var jquery = require('jquery');
-
-
-var MenuActions = {
- // PARENT FILTERS
- reload: function(setFilterFunc, id) {
- jquery.getJSON('/menu', function(payload) {
- JarrDispatcher.dispatch({
- type: ActionTypes.RELOAD_MENU,
- feeds: payload.feeds,
- categories: payload.categories,
- categories_order: payload.categories_order,
- is_admin: payload.is_admin,
- max_error: payload.max_error,
- error_threshold: payload.error_threshold,
- crawling_method: payload.crawling_method,
- all_unread_count: payload.all_unread_count,
- });
- if(setFilterFunc && id) {
- setFilterFunc(id);
- }
- });
- },
- setFilter: function(filter) {
- JarrDispatcher.dispatch({
- type: ActionTypes.MENU_FILTER,
- filter: filter,
- });
- },
- toggleAllFolding: function(all_folded) {
- JarrDispatcher.dispatch({
- type: ActionTypes.TOGGLE_MENU_FOLD,
- all_folded: all_folded,
- });
- },
-};
-
-module.exports = MenuActions;
bgstack15