diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-01-25 13:14:06 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-26 23:47:57 +0100 |
commit | 15c4ed6bebdeb277c24bd92dab5bba900fc90de4 (patch) | |
tree | 0171f769ecda89185885ad0a792fdb570913962a /src/web/js/components | |
parent | bootstraping right panel (diff) | |
download | newspipe-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')
-rw-r--r-- | src/web/js/components/MiddlePanel.react.js | 10 | ||||
-rw-r--r-- | src/web/js/components/RightPanel.react.js | 1 |
2 files changed, 7 insertions, 4 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> diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js index 422b8e5b..d195dc08 100644 --- a/src/web/js/components/RightPanel.react.js +++ b/src/web/js/components/RightPanel.react.js @@ -58,7 +58,6 @@ var RightPanel = React.createClass({ return <div />; }, componentDidMount: function() { - RightPanelActions.reload(); RightPanelStore.addChangeListener(this._onChange); }, componentWillUnmount: function() { |