aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/components/MiddlePanel.react.js
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-25 13:14:06 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-26 23:47:57 +0100
commit15c4ed6bebdeb277c24bd92dab5bba900fc90de4 (patch)
tree0171f769ecda89185885ad0a792fdb570913962a /src/web/js/components/MiddlePanel.react.js
parentbootstraping right panel (diff)
downloadnewspipe-15c4ed6bebdeb277c24bd92dab5bba900fc90de4.tar.gz
newspipe-15c4ed6bebdeb277c24bd92dab5bba900fc90de4.tar.bz2
newspipe-15c4ed6bebdeb277c24bd92dab5bba900fc90de4.zip
redoing constant, handling read / unread in menu, removing bad optim for loading articles
Diffstat (limited to 'src/web/js/components/MiddlePanel.react.js')
-rw-r--r--src/web/js/components/MiddlePanel.react.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/web/js/components/MiddlePanel.react.js b/src/web/js/components/MiddlePanel.react.js
index 49365a6a..741af5e9 100644
--- a/src/web/js/components/MiddlePanel.react.js
+++ b/src/web/js/components/MiddlePanel.react.js
@@ -29,7 +29,7 @@ var TableLine = React.createClass({
} else {
icon = <Glyphicon glyph="ban-circle" />;
}
- var title = (<a href={'/redirect/' + this.props.article_id}>
+ var title = (<a href={'/article/redirect/' + this.props.article_id}>
{icon} {this.props.feed_title}
</a>);
var read = (<Glyphicon glyph={this.state.read?"check":"unchecked"}
@@ -46,11 +46,13 @@ var TableLine = React.createClass({
},
toogleRead: function() {
this.setState({read: !this.state.read});
- MiddlePanelActions.changeRead(this.props.article_id, !this.state.read);
+ MiddlePanelActions.changeRead(this.props.category_id,
+ this.props.feed_id, this.props.article_id, !this.state.read);
},
toogleLike: function() {
this.setState({liked: !this.state.liked});
- MiddlePanelActions.changeLike(this.props.article_id, !this.state.liked);
+ MiddlePanelActions.changeLike(this.props.category_id,
+ this.props.feed_id, this.props.article_id, !this.state.liked);
},
});
@@ -100,6 +102,8 @@ var MiddlePanel = React.createClass({
liked={article.liked}
date={article.date}
article_id={article.article_id}
+ feed_id={article.feed_id}
+ category_id={article.category_id}
feed_title={article.feed_title} />);})}
</ListGroup>
</Row>
bgstack15