fix(front): dont close dropdowns when triggering the player from popover

This commit is contained in:
ArneBo 2025-02-06 12:45:37 +01:00
parent 25a892dec0
commit f4a391fe09
1 changed files with 1 additions and 8 deletions

View File

@ -9,7 +9,6 @@ import { useStore } from '~/store'
import { usePlayer } from '~/composables/audio/player'
import { useQueue } from '~/composables/audio/queue'
import jQuery from 'jquery'
import axios from 'axios'
export interface PlayOptionsProps {
@ -151,17 +150,14 @@ export default (props: PlayOptionsProps) => {
}
const el = useCurrentElement()
const enqueue = async () => {
jQuery(el.value).find('.ui.dropdown').dropdown('hide')
const enqueue = async () => {
const tracks = await getPlayableTracks()
await addToQueue(...tracks)
addMessage(tracks)
}
const enqueueNext = async (next = false) => {
jQuery(el.value).find('.ui.dropdown').dropdown('hide')
const tracks = await getPlayableTracks()
const wasEmpty = queue.value.length === 0
@ -177,9 +173,6 @@ export default (props: PlayOptionsProps) => {
const replacePlay = async (index?: number) => {
await clear()
jQuery(el.value).find('.ui.dropdown').dropdown('hide')
const tracksToPlay = await getPlayableTracks()
await addToQueue(...tracksToPlay)