aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/stores
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-31 22:32:10 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-31 22:32:10 +0100
commitdb6e918ee5a92429738f2e87afb1af8f024d5053 (patch)
tree5df4a69af341b0879ff6fac2022d0c662f0353d6 /src/web/js/stores
parenthandling errors from one page app (diff)
downloadnewspipe-db6e918ee5a92429738f2e87afb1af8f024d5053.tar.gz
newspipe-db6e918ee5a92429738f2e87afb1af8f024d5053.tar.bz2
newspipe-db6e918ee5a92429738f2e87afb1af8f024d5053.zip
enhancement: ordering categories and hidding empty 'no category' category
Diffstat (limited to 'src/web/js/stores')
-rw-r--r--src/web/js/stores/MenuStore.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/js/stores/MenuStore.js b/src/web/js/stores/MenuStore.js
index a68b24de..d3c44355 100644
--- a/src/web/js/stores/MenuStore.js
+++ b/src/web/js/stores/MenuStore.js
@@ -6,7 +6,7 @@ var assign = require('object-assign');
var MenuStore = assign({}, EventEmitter.prototype, {
- _datas: {filter: 'all', feeds: {}, categories: {},
+ _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},
@@ -46,6 +46,7 @@ MenuStore.dispatchToken = JarrDispatcher.register(function(action) {
case ActionTypes.RELOAD_MENU:
MenuStore._datas['feeds'] = action.feeds;
MenuStore._datas['categories'] = action.categories;
+ MenuStore._datas['categories_order'] = action.categories_order;
MenuStore._datas['is_admin'] = action.is_admin;
MenuStore._datas['max_error'] = action.max_error;
MenuStore._datas['error_threshold'] = action.error_threshold;
bgstack15