From f4a391fe09adde6e526b5c301aca7de1a8dd8404 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Thu, 6 Feb 2025 12:45:37 +0100 Subject: [PATCH] fix(front): dont close dropdowns when triggering the player from popover --- front/src/composables/audio/usePlayOptions.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/front/src/composables/audio/usePlayOptions.ts b/front/src/composables/audio/usePlayOptions.ts index 9c1e9fe1d..36c9c5e2f 100644 --- a/front/src/composables/audio/usePlayOptions.ts +++ b/front/src/composables/audio/usePlayOptions.ts @@ -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)