fix category checkbox

This commit is contained in:
jb-alvarado 2024-05-06 15:03:50 +02:00
parent d07bbbf631
commit 4fca1f262f

View File

@ -173,7 +173,12 @@
<div class="form-control">
<label class="cursor-pointer label">
<span class="label-text">{{ $t('player.ad') }}</span>
<input type="checkbox" class="checkbox checkbox-sm" @click="isAd" />
<input
type="checkbox"
class="checkbox checkbox-sm"
:checked="newSource.category === 'advertisement'"
@click="isAd"
/>
</label>
</div>
</div>
@ -352,6 +357,8 @@ function editPlaylistItem(i: number) {
editId.value = i
showSourceModal.value = true
console.log('ad', playlistStore.playlist[i].category)
newSource.value = {
begin: playlistStore.playlist[i].begin,
title: playlistStore.playlist[i].title,