From 0fbcd094c341e7686509546b8d4e9a383dcc08c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Delattre?= Date: Thu, 26 Jan 2017 13:32:37 +0100 Subject: [PATCH] Add polochon download button in the show details --- src/public/js/components/shows/details.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/public/js/components/shows/details.js b/src/public/js/components/shows/details.js index ecaa895..114eb9d 100644 --- a/src/public/js/components/shows/details.js +++ b/src/public/js/components/shows/details.js @@ -148,6 +148,7 @@ function Episode(props) { /> ) })} + @@ -176,3 +177,17 @@ class Torrent extends React.Component { ) } } + +function DownloadButton(props) { + if (props.data.polochon_url === "") { + return null + } + + return ( + + + Download + + + ); +}