update class notation
This commit is contained in:
@@ -29,15 +29,14 @@ function renderTorrent (state, dispatch, torrent) {
|
|||||||
var elements = [
|
var elements = [
|
||||||
renderTorrentMetadata(torrent),
|
renderTorrentMetadata(torrent),
|
||||||
hx`
|
hx`
|
||||||
<i
|
<i.icon.delete
|
||||||
className="icon delete"
|
|
||||||
onclick=${() => dispatch('deleteTorrent', torrent)}>
|
onclick=${() => dispatch('deleteTorrent', torrent)}>
|
||||||
close
|
close
|
||||||
</i>
|
</i>
|
||||||
`,
|
`,
|
||||||
hx`
|
hx`
|
||||||
<i
|
<i.btn.icon.play
|
||||||
className="${!torrent.ready ? 'disabled btn icon play' : 'btn icon play'}"
|
className="${!torrent.ready ? 'disabled' : ''}"
|
||||||
onclick=${() => dispatch('openPlayer', torrent)}>
|
onclick=${() => dispatch('openPlayer', torrent)}>
|
||||||
play_arrow
|
play_arrow
|
||||||
</i>
|
</i>
|
||||||
@@ -46,8 +45,8 @@ function renderTorrent (state, dispatch, torrent) {
|
|||||||
|
|
||||||
if (state.view.chromecast) {
|
if (state.view.chromecast) {
|
||||||
elements.push(hx`
|
elements.push(hx`
|
||||||
<i
|
<i.btn.icon.chromecast
|
||||||
className="${!torrent.ready ? 'disabled btn icon chromecast' : 'btn icon chromecast'}"
|
className="${!torrent.ready ? 'disabled' : ''}"
|
||||||
onclick=${() => dispatch('openChromecast', torrent)}>
|
onclick=${() => dispatch('openChromecast', torrent)}>
|
||||||
cast
|
cast
|
||||||
</i>
|
</i>
|
||||||
@@ -56,8 +55,8 @@ function renderTorrent (state, dispatch, torrent) {
|
|||||||
|
|
||||||
if (state.view.devices.airplay) {
|
if (state.view.devices.airplay) {
|
||||||
elements.push(hx`
|
elements.push(hx`
|
||||||
<i
|
<i.btn.icon.airplay
|
||||||
className="${!torrent.ready ? 'disabled btn icon airplay' : 'btn icon airplay'}"
|
className="${!torrent.ready ? 'disabled' : ''}"
|
||||||
onclick=${() => dispatch('openAirplay', torrent)}>
|
onclick=${() => dispatch('openAirplay', torrent)}>
|
||||||
airplay
|
airplay
|
||||||
</i>
|
</i>
|
||||||
|
|||||||
Reference in New Issue
Block a user