aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/stores
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-30 01:44:13 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-30 01:44:13 +0100
commitf334fb4b355d90cbf0b8d9e658a87ebeec7fbe90 (patch)
tree9070ef12da288a3138fb261320e522b47c3803f5 /src/web/js/stores
parentdisplaying date on middle panel (diff)
downloadnewspipe-f334fb4b355d90cbf0b8d9e658a87ebeec7fbe90.tar.gz
newspipe-f334fb4b355d90cbf0b8d9e658a87ebeec7fbe90.tar.bz2
newspipe-f334fb4b355d90cbf0b8d9e658a87ebeec7fbe90.zip
wip redoing feed panel
Diffstat (limited to 'src/web/js/stores')
-rw-r--r--src/web/js/stores/MiddlePanelStore.js3
-rw-r--r--src/web/js/stores/RightPanelStore.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/web/js/stores/MiddlePanelStore.js b/src/web/js/stores/MiddlePanelStore.js
index 1a0a4fab..4a5efd00 100644
--- a/src/web/js/stores/MiddlePanelStore.js
+++ b/src/web/js/stores/MiddlePanelStore.js
@@ -119,9 +119,10 @@ MiddlePanelStore.dispatchToken = JarrDispatcher.register(function(action) {
for (var i in MiddlePanelStore._datas.articles) {
if(MiddlePanelStore._datas.articles[i].article_id == action.article.id) {
MiddlePanelStore._datas.articles[i].read = true;
- console.log(MiddlePanelStore._datas.articles[i]);
+ break;
}
}
+ break;
default:
// pass
}
diff --git a/src/web/js/stores/RightPanelStore.js b/src/web/js/stores/RightPanelStore.js
index 68d3b7e9..85f336e4 100644
--- a/src/web/js/stores/RightPanelStore.js
+++ b/src/web/js/stores/RightPanelStore.js
@@ -30,17 +30,19 @@ RightPanelStore.dispatchToken = JarrDispatcher.register(function(action) {
if(action.filter_id == null) {
RightPanelStore._datas.category = null;
RightPanelStore._datas.feed = null;
+ RightPanelStore._datas.current = null;
} else if(action.filter_type == 'category_id') {
RightPanelStore._datas.category = MenuStore._datas.categories[action.filter_id];
RightPanelStore._datas.feed = null;
RightPanelStore._datas.current = 'category';
+ RightPanelStore.emitChange();
} else {
RightPanelStore._datas.feed = MenuStore._datas.feeds[action.filter_id];
RightPanelStore._datas.category = MenuStore._datas.categories[RightPanelStore._datas.feed.category_id];
RightPanelStore._datas.current = 'feed';
+ RightPanelStore.emitChange();
}
- RightPanelStore.emitChange();
break;
case ActionTypes.LOAD_ARTICLE:
RightPanelStore._datas.feed = MenuStore._datas.feeds[action.article.feed_id];
bgstack15