From 1eee1cc14cca3863e7da7368a659fb70fc3b4d0f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 4 Feb 2016 07:47:03 +0100 Subject: Add a link to open an article in a new tab. Should be improve (maybe without the a anchor). --- src/web/js/components/MiddlePanel.react.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/web') diff --git a/src/web/js/components/MiddlePanel.react.js b/src/web/js/components/MiddlePanel.react.js index 92f04325..dad33acc 100644 --- a/src/web/js/components/MiddlePanel.react.js +++ b/src/web/js/components/MiddlePanel.react.js @@ -35,13 +35,18 @@ var TableLine = React.createClass({ icon = ; } var title = ( + onClick={this.openRedirectLink}> {icon} {this.props.feed_title} ); var read = (); var liked = (); + icon = ; + var newTab = ( + {icon} + ); var clsses = "list-group-item"; if(this.props.selected) { clsses += " active"; @@ -52,7 +57,7 @@ var TableLine = React.createClass({
{title}
-
{read} {liked} {this.props.title}
+
{read} {liked} {newTab} {this.props.title}
); }, -- cgit