fix(front): playbutton filter fix
This commit is contained in:
parent
c53f4fbeeb
commit
1e9de5a97c
|
@ -64,7 +64,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|
||||||
const {
|
const {
|
||||||
playable,
|
playable,
|
||||||
filterableArtists,
|
filterableArtist,
|
||||||
filterArtist,
|
filterArtist,
|
||||||
enqueue,
|
enqueue,
|
||||||
enqueueNext,
|
enqueueNext,
|
||||||
|
@ -115,7 +115,7 @@ const isOpen = ref(false)
|
||||||
<Button
|
<Button
|
||||||
v-else
|
v-else
|
||||||
v-bind="{
|
v-bind="{
|
||||||
disabled: !playable,
|
disabled: !playable && !filterableArtist,
|
||||||
primary: playable,
|
primary: playable,
|
||||||
split: true,
|
split: true,
|
||||||
splitIcon: 'bi-caret-down-fill'
|
splitIcon: 'bi-caret-down-fill'
|
||||||
|
@ -201,11 +201,11 @@ const isOpen = ref(false)
|
||||||
</span>
|
</span>
|
||||||
</PopoverItem>
|
</PopoverItem>
|
||||||
|
|
||||||
<hr v-if="filterableArtists || Object.keys(getReportableObjects({track, album, artist, playlist, account, channel})).length > 0">
|
<hr v-if="filterableArtist || Object.keys(getReportableObjects({track, album, artist, playlist, account, channel})).length > 0">
|
||||||
|
|
||||||
<PopoverItem
|
<PopoverItem
|
||||||
v-if="filterableArtists"
|
v-if="filterableArtist"
|
||||||
:disabled="!filterableArtists"
|
:disabled="!filterableArtist"
|
||||||
:title="labels.hideArtist"
|
:title="labels.hideArtist"
|
||||||
icon="bi-eye-slash"
|
icon="bi-eye-slash"
|
||||||
@click.stop.prevent="filterArtist"
|
@click.stop.prevent="filterArtist"
|
||||||
|
|
Loading…
Reference in New Issue