diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-02-02 23:05:16 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-02-02 23:07:11 +0100 |
commit | 9ad36d04c3a352afc6f9a1322c7401200332877a (patch) | |
tree | 6e12cf2b67b016aff38874c389b5bf8b5242749a /src/web/js/stores | |
parent | displaying more informations on articles (diff) | |
download | newspipe-9ad36d04c3a352afc6f9a1322c7401200332877a.tar.gz newspipe-9ad36d04c3a352afc6f9a1322c7401200332877a.tar.bz2 newspipe-9ad36d04c3a352afc6f9a1322c7401200332877a.zip |
reload and fold all button
Diffstat (limited to 'src/web/js/stores')
-rw-r--r-- | src/web/js/stores/MenuStore.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/web/js/stores/MenuStore.js b/src/web/js/stores/MenuStore.js index 36dee363..49c61bc1 100644 --- a/src/web/js/stores/MenuStore.js +++ b/src/web/js/stores/MenuStore.js @@ -9,7 +9,8 @@ var MenuStore = assign({}, EventEmitter.prototype, { _datas: {filter: 'all', feeds: {}, categories: {}, categories_order: [], active_type: null, active_id: null, is_admin: false, crawling_method: 'classic', - all_unread_count: 0, max_error: 0, error_threshold: 0}, + all_unread_count: 0, max_error: 0, error_threshold: 0, + all_folded: false}, getAll: function() { return this._datas; }, @@ -106,6 +107,9 @@ MenuStore.dispatchToken = JarrDispatcher.register(function(action) { MenuStore.emitChange(); } break; + case ActionTypes.TOGGLE_MENU_FOLD: + MenuStore._datas.all_folded = action.all_folded; + MenuStore.emitChange(); default: // do nothing } |