fix(front): reinitialize virtual queue list whenever queue gets empty
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2337>
This commit is contained in:
parent
8b1d1adf15
commit
d4cf0bd590
|
@ -427,6 +427,7 @@ const coverType = useStorage('queue:cover-type', CoverType.COVER_ART)
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<virtual-list
|
<virtual-list
|
||||||
|
v-if="queueItems.length !== 0"
|
||||||
ref="list"
|
ref="list"
|
||||||
:list="queueItems"
|
:list="queueItems"
|
||||||
:component="QueueItem"
|
:component="QueueItem"
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { Track, Artist, Album, Playlist, Library, Channel, Actor } from '~/
|
||||||
import type { ContentFilter } from '~/store/moderation'
|
import type { ContentFilter } from '~/store/moderation'
|
||||||
|
|
||||||
import { useCurrentElement } from '@vueuse/core'
|
import { useCurrentElement } from '@vueuse/core'
|
||||||
import { computed, markRaw, ref } from 'vue'
|
import { computed, markRaw, nextTick, ref } from 'vue'
|
||||||
import { i18n } from '~/init/locale'
|
import { i18n } from '~/init/locale'
|
||||||
import { useStore } from '~/store'
|
import { useStore } from '~/store'
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ export default (props: PlayOptionsProps) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const replacePlay = async (index?: number) => {
|
const replacePlay = async (index?: number) => {
|
||||||
clear()
|
await clear()
|
||||||
|
|
||||||
jQuery(el.value).find('.ui.dropdown').dropdown('hide')
|
jQuery(el.value).find('.ui.dropdown').dropdown('hide')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue