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/stores/MenuStore.js | |
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/stores/MenuStore.js')
-rw-r--r-- | src/web/js/stores/MenuStore.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/js/stores/MenuStore.js b/src/web/js/stores/MenuStore.js index b8f50fd9..a68b24de 100644 --- a/src/web/js/stores/MenuStore.js +++ b/src/web/js/stores/MenuStore.js @@ -9,7 +9,7 @@ var MenuStore = assign({}, EventEmitter.prototype, { _datas: {filter: 'all', feeds: {}, categories: {}, active_type: null, active_id: null, is_admin: false, crawling_method: 'classic', - all_unread_count: 0}, + all_unread_count: 0, max_error: 0, error_threshold: 0}, getAll: function() { return this._datas; }, @@ -47,6 +47,8 @@ MenuStore.dispatchToken = JarrDispatcher.register(function(action) { MenuStore._datas['feeds'] = action.feeds; MenuStore._datas['categories'] = action.categories; MenuStore._datas['is_admin'] = action.is_admin; + MenuStore._datas['max_error'] = action.max_error; + MenuStore._datas['error_threshold'] = action.error_threshold; MenuStore._datas['crawling_method'] = action.crawling_method; MenuStore._datas['all_unread_count'] = action.all_unread_count; MenuStore.emitChange(); |