diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-01-31 18:59:36 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-31 18:59:36 +0100 |
commit | 64964d2fcfa73e18b1316d788bacd11e2180bb7d (patch) | |
tree | 9c11cbd18ae6bf3a8c852c5e66a7eeb0e131c115 /src/web/js/actions | |
parent | saving categ (diff) | |
download | newspipe-64964d2fcfa73e18b1316d788bacd11e2180bb7d.tar.gz newspipe-64964d2fcfa73e18b1316d788bacd11e2180bb7d.tar.bz2 newspipe-64964d2fcfa73e18b1316d788bacd11e2180bb7d.zip |
handling errors from one page app
Diffstat (limited to 'src/web/js/actions')
-rw-r--r-- | src/web/js/actions/MenuActions.js | 2 | ||||
-rw-r--r-- | src/web/js/actions/RightPanelActions.js | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/web/js/actions/MenuActions.js b/src/web/js/actions/MenuActions.js index fa30474e..027a3d37 100644 --- a/src/web/js/actions/MenuActions.js +++ b/src/web/js/actions/MenuActions.js @@ -12,6 +12,8 @@ var MenuActions = { feeds: payload.feeds, categories: payload.categories, 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, }); diff --git a/src/web/js/actions/RightPanelActions.js b/src/web/js/actions/RightPanelActions.js index 838690d1..489abae4 100644 --- a/src/web/js/actions/RightPanelActions.js +++ b/src/web/js/actions/RightPanelActions.js @@ -28,6 +28,15 @@ var RightPanelActions = { delObj: function(id, obj_type, fields) { this._apiReq('DELETE', id, obj_type, null, MenuActions.reload); }, + resetErrors: function(feed_id) { + jquery.ajax({type: 'GET', + url: "feed/reset_errors/" + feed_id, + success: function() { + MenuActions.reload(); + }, + }); + + }, }; module.exports = RightPanelActions; |