fix(front): dont close dropdowns when triggering the player from popover
This commit is contained in:
parent
25a892dec0
commit
f4a391fe09
|
@ -9,7 +9,6 @@ import { useStore } from '~/store'
|
||||||
import { usePlayer } from '~/composables/audio/player'
|
import { usePlayer } from '~/composables/audio/player'
|
||||||
import { useQueue } from '~/composables/audio/queue'
|
import { useQueue } from '~/composables/audio/queue'
|
||||||
|
|
||||||
import jQuery from 'jquery'
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
export interface PlayOptionsProps {
|
export interface PlayOptionsProps {
|
||||||
|
@ -151,17 +150,14 @@ export default (props: PlayOptionsProps) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const el = useCurrentElement()
|
const el = useCurrentElement()
|
||||||
const enqueue = async () => {
|
|
||||||
jQuery(el.value).find('.ui.dropdown').dropdown('hide')
|
|
||||||
|
|
||||||
|
const enqueue = async () => {
|
||||||
const tracks = await getPlayableTracks()
|
const tracks = await getPlayableTracks()
|
||||||
await addToQueue(...tracks)
|
await addToQueue(...tracks)
|
||||||
addMessage(tracks)
|
addMessage(tracks)
|
||||||
}
|
}
|
||||||
|
|
||||||
const enqueueNext = async (next = false) => {
|
const enqueueNext = async (next = false) => {
|
||||||
jQuery(el.value).find('.ui.dropdown').dropdown('hide')
|
|
||||||
|
|
||||||
const tracks = await getPlayableTracks()
|
const tracks = await getPlayableTracks()
|
||||||
|
|
||||||
const wasEmpty = queue.value.length === 0
|
const wasEmpty = queue.value.length === 0
|
||||||
|
@ -177,9 +173,6 @@ export default (props: PlayOptionsProps) => {
|
||||||
|
|
||||||
const replacePlay = async (index?: number) => {
|
const replacePlay = async (index?: number) => {
|
||||||
await clear()
|
await clear()
|
||||||
|
|
||||||
jQuery(el.value).find('.ui.dropdown').dropdown('hide')
|
|
||||||
|
|
||||||
const tracksToPlay = await getPlayableTracks()
|
const tracksToPlay = await getPlayableTracks()
|
||||||
await addToQueue(...tracksToPlay)
|
await addToQueue(...tracksToPlay)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue