Cleanup dom tree
This commit is contained in:
@ -154,7 +154,7 @@ watch(() => currentPlaylistStore.id, (newId) => {
|
|||||||
<InputWithIcon v-model="searchValue" :icon="Search" placeholder="Search..." type="search" icon-size="5"
|
<InputWithIcon v-model="searchValue" :icon="Search" placeholder="Search..." type="search" icon-size="5"
|
||||||
id="user-search" class="w-full" />
|
id="user-search" class="w-full" />
|
||||||
|
|
||||||
<div ref="tracksRef">
|
<div>
|
||||||
<div v-if="isLoading" class="flex justify-center items-center py-8">
|
<div v-if="isLoading" class="flex justify-center items-center py-8">
|
||||||
<p>Loading tracks...</p>
|
<p>Loading tracks...</p>
|
||||||
</div>
|
</div>
|
||||||
@ -168,16 +168,14 @@ watch(() => currentPlaylistStore.id, (newId) => {
|
|||||||
<p v-else>No tracks in this playlist</p>
|
<p v-else>No tracks in this playlist</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else ref="tracksRef" class="space-y-2">
|
<VueDraggableNext v-model="mappedTracks" group="tracks" @change="onTrackOrderChange" item-key="id"
|
||||||
<VueDraggableNext v-model="mappedTracks" group="tracks" @change="onTrackOrderChange"
|
class="space-y-2" v-else>
|
||||||
item-key="id">
|
<div v-for="track in mappedTracks" :key="track.id">
|
||||||
<div v-for="track in mappedTracks" :key="track.id">
|
<MusicCard :key="track.id" :title="track.title" :author="track.author"
|
||||||
<MusicCard :key="track.id" :title="track.title" :author="track.author"
|
:authorLabel="track.authorLabel" :badges="track.badges" :imageUrl="track.imageUrl"
|
||||||
:authorLabel="track.authorLabel" :badges="track.badges" :imageUrl="track.imageUrl"
|
:date="track.date" />
|
||||||
:date="track.date" />
|
</div>
|
||||||
</div>
|
</VueDraggableNext>
|
||||||
</VueDraggableNext>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<template #sidebar>
|
<template #sidebar>
|
||||||
|
|||||||
Reference in New Issue
Block a user