use play button instead of add for library adding for album
This commit is contained in:
parent
7f0b2da0be
commit
9b574a1919
2 changed files with 9 additions and 1 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -319,3 +319,8 @@ keys.sh
|
|||
package-lock.json
|
||||
yarn.lock
|
||||
resources/b64.txt
|
||||
|
||||
|
||||
savedconfig/cider-config.json
|
||||
savedconfig/config.json
|
||||
savedconfig/session.json
|
||||
|
|
|
@ -16,9 +16,12 @@
|
|||
<template v-if="isVisible">
|
||||
<div class="isLibrary" v-if="showLibraryStatus == true">
|
||||
<div v-if="showInLibrary" :style="{display: (showInLibrary ? 'block' : 'none'), 'margin-left':'11px'}">
|
||||
<button @click="addToLibrary()" v-if="!addedToLibrary">
|
||||
<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>
|
||||
</button>
|
||||
<button v-else @click="playTrack()" style="width: 44px;margin-left: -11px;">
|
||||
<%- include("../svg/play.svg") %>
|
||||
</button>
|
||||
</div>
|
||||
<div v-if="!(app.mk.isPlaying && (((app.mk.nowPlayingItem._songId ?? app.mk.nowPlayingItem.id ) == item.attributes.playParams.id) || (app.mk.nowPlayingItem.id == item.id ))) && showIndex" :style="{display: ((showIndex && !showInLibrary) ? 'block' : 'none'), 'margin-left':'11px'}">
|
||||
<div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue