fix play button showing when not needed in list-item

This commit is contained in:
vapormusic 2022-02-10 23:15:09 +07:00
parent bed6548fc1
commit 28fdfb0e11

View file

@ -19,7 +19,7 @@
<button @click="addToLibrary()" v-if="!addedToLibrary && (showIndex == false ||(showIndex == true && showIndexPlaylist != false))"> <button @click="addToLibrary()" v-if="!addedToLibrary && (showIndex == false ||(showIndex == true && showIndexPlaylist != false))">
<div class="svg-icon" :style="{'--color': 'var(--keyColor)', '--url': 'url(./assets/feather/plus.svg)'}"></div> <div class="svg-icon" :style="{'--color': 'var(--keyColor)', '--url': 'url(./assets/feather/plus.svg)'}"></div>
</button> </button>
<button v-else @click="playTrack()" style="width: 44px;margin-left: -11px;"> <button v-else-if='showIndex == true' @click="playTrack()" style="width: 44px;margin-left: -11px;">
<%- include("../svg/play.svg") %> <%- include("../svg/play.svg") %>
</button> </button>
</div> </div>