mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Remove like/dislike filter
This commit is contained in:
parent
fee482f605
commit
2ea82cdec4
@ -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));
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user