mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 18:49:19 +02:00
Form, modal and player icon to add track to playlist
This commit is contained in:
parent
a34b1afd6c
commit
d6f2c7d4c4
4 changed files with 231 additions and 1 deletions
|
@ -30,7 +30,12 @@
|
|||
</router-link>
|
||||
</div>
|
||||
<div class="description">
|
||||
<track-favorite-icon :track="currentTrack"></track-favorite-icon>
|
||||
<track-favorite-icon
|
||||
v-if="$store.state.auth.authenticated"
|
||||
:track="currentTrack"></track-favorite-icon>
|
||||
<track-playlist-icon
|
||||
v-if="$store.state.auth.authenticated"
|
||||
:track="currentTrack"></track-playlist-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -140,11 +145,13 @@ import ColorThief from '@/vendor/color-thief'
|
|||
import Track from '@/audio/track'
|
||||
import AudioTrack from '@/components/audio/Track'
|
||||
import TrackFavoriteIcon from '@/components/favorites/TrackFavoriteIcon'
|
||||
import TrackPlaylistIcon from '@/components/playlists/TrackPlaylistIcon'
|
||||
|
||||
export default {
|
||||
name: 'player',
|
||||
components: {
|
||||
TrackFavoriteIcon,
|
||||
TrackPlaylistIcon,
|
||||
GlobalEvents,
|
||||
AudioTrack
|
||||
},
|
||||
|
@ -281,6 +288,7 @@ export default {
|
|||
cursor: pointer
|
||||
}
|
||||
.track-area {
|
||||
margin-top: 0;
|
||||
.header, .meta, .artist, .album {
|
||||
color: white !important;
|
||||
}
|
||||
|
@ -384,4 +392,5 @@ export default {
|
|||
.ui.feed.icon {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue