fixed preview not working

This commit is contained in:
Roberto Tonino
2020-06-02 15:41:51 +02:00
parent 3f1ca5a75c
commit b33a3115b0
4 changed files with 9 additions and 10 deletions

View File

@@ -1236,7 +1236,7 @@
<div class="table__cell-content table__cell-content--vertical-center">
<i class="material-icons"
:class="{ 'preview_playlist_controls' : track.preview, disabled: !track.preview }"
@click='track.preview ? playPausePreview : null' :data-preview="track.preview">
v-on="{ click: track.preview ? playPausePreview : null }" :data-preview="track.preview">
play_arrow
</i>
</div>
@@ -1285,7 +1285,7 @@
<template v-else>
<tr v-for="(track, i) in body">
<td>
<i v-if="track.preview_url" @click=playPausePreview
<i v-if="track.preview_url" @click="playPausePreview"
:class="'material-icons' + (track.preview_url ? ' preview_playlist_controls' : '')"
:data-preview="track.preview_url">play_arrow</i>
<i v-else class="material-icons disabled">play_arrow</i>