Cast buttons and fullscreen in player controls

This commit is contained in:
DC
2016-03-05 01:05:09 -08:00
parent 2b17c1dabd
commit b7b30ed7c4
6 changed files with 52 additions and 27 deletions

View File

@@ -44,26 +44,6 @@ function renderTorrent (state, dispatch, torrent) {
`
]
if (state.view.chromecast) {
elements.push(hx`
<i.btn.icon.chromecast
class="${!torrent.ready ? 'disabled' : ''}"
onclick=${() => dispatch('openChromecast', torrent)}>
cast
</i>
`)
}
if (state.view.devices.airplay) {
elements.push(hx`
<i.btn.icon.airplay
class="${!torrent.ready ? 'disabled' : ''}"
onclick=${() => dispatch('openAirplay', torrent)}>
airplay
</i>
`)
}
return hx`<div class="torrent" style=${style}>${elements}</div>`
}