Add download button

Doesn't do anything yet
This commit is contained in:
DC
2016-03-07 00:01:32 -08:00
parent 5aa1cce09e
commit 713c391c05
4 changed files with 40 additions and 30 deletions

View File

@@ -68,6 +68,11 @@ function renderTorrent (torrent, dispatch) {
function renderTorrentButtons () {
return hx`
<div class="buttons">
<i.btn.icon.download
class='${torrent.state}'
onclick=${() => dispatch('toggleTorrent', torrent)}>
file_download
</i>
<i.btn.icon.play
class='${!torrent.ready ? 'disabled' : ''}'
onclick=${() => dispatch('openPlayer', torrent)}>