Remove like/dislike filter

This commit is contained in:
Niels van Velzen 2022-11-07 12:19:33 +01:00
parent fee482f605
commit 2ea82cdec4
2 changed files with 0 additions and 24 deletions

View File

@ -69,8 +69,6 @@ import template from './filterdialog.template.html';
if (options.mode === 'livetvchannels') { if (options.mode === 'livetvchannels') {
context.querySelector('.chkFavorite').checked = query.IsFavorite === true; context.querySelector('.chkFavorite').checked = query.IsFavorite === true;
context.querySelector('.chkLikes').checked = query.IsLiked === true;
context.querySelector('.chkDislikes').checked = query.IsDisliked === true;
} else { } else {
for (const elem of context.querySelectorAll('.chkStandardFilter')) { for (const elem of context.querySelectorAll('.chkStandardFilter')) {
const filters = `,${query.Filters || ''}`; const filters = `,${query.Filters || ''}`;
@ -237,19 +235,6 @@ import template from './filterdialog.template.html';
for (const elem of context.querySelectorAll('.chkFavorite')) { for (const elem of context.querySelectorAll('.chkFavorite')) {
elem.addEventListener('change', () => this.onFavoriteChange(elem)); elem.addEventListener('change', () => this.onFavoriteChange(elem));
} }
const chkLikes = context.querySelector('.chkLikes');
chkLikes.addEventListener('change', () => {
query.StartIndex = 0;
query.IsLiked = chkLikes.checked ? true : null;
triggerChange(this);
});
const chkDislikes = context.querySelector('.chkDislikes');
chkDislikes.addEventListener('change', () => {
query.StartIndex = 0;
query.IsDisliked = chkDislikes.checked ? true : null;
triggerChange(this);
});
} else { } else {
for (const elem of context.querySelectorAll('.chkStandardFilter')) { for (const elem of context.querySelectorAll('.chkStandardFilter')) {
elem.addEventListener('change', () => this.onStandardFilterChange(elem)); elem.addEventListener('change', () => this.onStandardFilterChange(elem));

View File

@ -23,15 +23,6 @@
data-filter="IsFavorite" /> data-filter="IsFavorite" />
<span>${Favorites}</span> <span>${Favorites}</span>
</label> </label>
<label>
<input type="checkbox" is="emby-checkbox" class="chkStandardFilter chkLikes" data-filter="Likes" />
<span>${OptionLikes}</span>
</label>
<label>
<input type="checkbox" is="emby-checkbox" class="chkStandardFilter chkDislikes"
data-filter="Dislikes" />
<span>${OptionDislikes}</span>
</label>
<label class="episodeFilter hide"> <label class="episodeFilter hide">
<input type="checkbox" is="emby-checkbox" id="chkSpecialEpisode" /> <input type="checkbox" is="emby-checkbox" id="chkSpecialEpisode" />
<span>${OptionSpecialEpisode}</span> <span>${OptionSpecialEpisode}</span>