Refactor playlist logic into dedicated functions

This commit is contained in:
Bnyro
2023-06-15 17:32:32 +02:00
parent 8baf6ad0de
commit 2e64c4f003
5 changed files with 119 additions and 92 deletions

View File

@@ -124,7 +124,12 @@
@confirm="removeVideo(item.url.substr(-11))"
:message="$t('actions.delete_playlist_video_confirm')"
/>
<PlaylistAddModal v-if="showModal" :video-id="item.url.substr(-11)" @close="showModal = !showModal" />
<PlaylistAddModal
v-if="showModal"
:video-id="item.url.substr(-11)"
video-info="item"
@close="showModal = !showModal"
/>
</div>
</div>
</div>