refactor(front): playlist button in album detail
This commit is contained in:
parent
66a0d72870
commit
690fa15f12
|
@ -13,6 +13,7 @@ import axios from 'axios'
|
||||||
|
|
||||||
import ArtistCreditLabel from '~/components/audio/ArtistCreditLabel.vue'
|
import ArtistCreditLabel from '~/components/audio/ArtistCreditLabel.vue'
|
||||||
import TrackFavoriteIcon from '~/components/favorites/TrackFavoriteIcon.vue'
|
import TrackFavoriteIcon from '~/components/favorites/TrackFavoriteIcon.vue'
|
||||||
|
import TrackPlaylistIcon from '~/components/playlists/TrackPlaylistIcon.vue'
|
||||||
import PlayButton from '~/components/audio/PlayButton.vue'
|
import PlayButton from '~/components/audio/PlayButton.vue'
|
||||||
import TagsList from '~/components/tags/List.vue'
|
import TagsList from '~/components/tags/List.vue'
|
||||||
import AlbumDropdown from './AlbumDropdown.vue'
|
import AlbumDropdown from './AlbumDropdown.vue'
|
||||||
|
@ -218,7 +219,6 @@ const remove = async () => {
|
||||||
</Layout>
|
</Layout>
|
||||||
<Layout flex>
|
<Layout flex>
|
||||||
<PlayButton
|
<PlayButton
|
||||||
class="vibrant"
|
|
||||||
split
|
split
|
||||||
:tracks="object.tracks"
|
:tracks="object.tracks"
|
||||||
:is-playable="object.is_playable"
|
:is-playable="object.is_playable"
|
||||||
|
|
|
@ -31,16 +31,15 @@ const labels = computed(() => ({
|
||||||
<template>
|
<template>
|
||||||
<Button
|
<Button
|
||||||
v-if="button"
|
v-if="button"
|
||||||
:class="['ui', 'icon', 'labeled', 'button']"
|
primary
|
||||||
|
icon="bi-list"
|
||||||
@click.stop="store.commit('playlists/chooseTrack', track)"
|
@click.stop="store.commit('playlists/chooseTrack', track)"
|
||||||
>
|
>
|
||||||
<i class="list icon" />
|
|
||||||
{{ t('components.playlists.TrackPlaylistIcon.button.add') }}
|
{{ t('components.playlists.TrackPlaylistIcon.button.add') }}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
v-else
|
v-else
|
||||||
round
|
secondary
|
||||||
outline
|
|
||||||
icon="bi-list"
|
icon="bi-list"
|
||||||
:class="['ui', 'basic', 'circular', 'icon', {'really': !border}, 'button']"
|
:class="['ui', 'basic', 'circular', 'icon', {'really': !border}, 'button']"
|
||||||
:aria-label="labels.addToPlaylist"
|
:aria-label="labels.addToPlaylist"
|
||||||
|
|
Loading…
Reference in New Issue