aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/stores
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-31 02:24:10 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-31 02:28:01 +0100
commit9ca6a6989b0c87401f1a3903077723cd9a648a79 (patch)
tree40d36bf9a7b5bff1dcdb397b1208b736ef816b91 /src/web/js/stores
parentregistering modifications on feeds / categories (diff)
downloadnewspipe-9ca6a6989b0c87401f1a3903077723cd9a648a79.tar.gz
newspipe-9ca6a6989b0c87401f1a3903077723cd9a648a79.tar.bz2
newspipe-9ca6a6989b0c87401f1a3903077723cd9a648a79.zip
redoing navbar in react
Diffstat (limited to 'src/web/js/stores')
-rw-r--r--src/web/js/stores/MenuStore.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web/js/stores/MenuStore.js b/src/web/js/stores/MenuStore.js
index edc90a38..b8f50fd9 100644
--- a/src/web/js/stores/MenuStore.js
+++ b/src/web/js/stores/MenuStore.js
@@ -8,6 +8,7 @@ var assign = require('object-assign');
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},
getAll: function() {
return this._datas;
@@ -45,6 +46,8 @@ MenuStore.dispatchToken = JarrDispatcher.register(function(action) {
case ActionTypes.RELOAD_MENU:
MenuStore._datas['feeds'] = action.feeds;
MenuStore._datas['categories'] = action.categories;
+ MenuStore._datas['is_admin'] = action.is_admin;
+ MenuStore._datas['crawling_method'] = action.crawling_method;
MenuStore._datas['all_unread_count'] = action.all_unread_count;
MenuStore.emitChange();
break;
bgstack15