Only show Like button when applicable

This commit is contained in:
An Phan 2016-11-28 17:12:48 +07:00
parent bb06cd6b63
commit c3b0cbe361
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2

View file

@ -34,7 +34,10 @@
<div class="wrapper" v-koel-clickaway="closeEqualizer">
<equalizer v-if="useEqualizer" v-show="showEqualizer"/>
<sound-bar v-show="song.playbackState === 'playing'"/>
<i class="like control fa fa-heart" :class="{ liked: song.liked }" @click.prevent="like"/>
<i v-if="song.id"
class="like control fa fa-heart"
:class="{ liked: song.liked }"
@click.prevent="like"/>
<span class="control info"
@click.prevent="toggleExtraPanel"
:class="{ active: prefs.showExtraPanel }">Info</span>