fix category checkbox
This commit is contained in:
parent
d07bbbf631
commit
4fca1f262f
@ -173,7 +173,12 @@
|
|||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="cursor-pointer label">
|
<label class="cursor-pointer label">
|
||||||
<span class="label-text">{{ $t('player.ad') }}</span>
|
<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>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -352,6 +357,8 @@ function editPlaylistItem(i: number) {
|
|||||||
editId.value = i
|
editId.value = i
|
||||||
showSourceModal.value = true
|
showSourceModal.value = true
|
||||||
|
|
||||||
|
console.log('ad', playlistStore.playlist[i].category)
|
||||||
|
|
||||||
newSource.value = {
|
newSource.value = {
|
||||||
begin: playlistStore.playlist[i].begin,
|
begin: playlistStore.playlist[i].begin,
|
||||||
title: playlistStore.playlist[i].title,
|
title: playlistStore.playlist[i].title,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user