From 2ea82cdec4da603e9ab84fd58ad895314ab9d6d0 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Mon, 7 Nov 2022 12:19:33 +0100 Subject: [PATCH] Remove like/dislike filter --- src/components/filterdialog/filterdialog.js | 15 --------------- .../filterdialog/filterdialog.template.html | 9 --------- 2 files changed, 24 deletions(-) diff --git a/src/components/filterdialog/filterdialog.js b/src/components/filterdialog/filterdialog.js index c18e6d4a5f..83d7ccbd2e 100644 --- a/src/components/filterdialog/filterdialog.js +++ b/src/components/filterdialog/filterdialog.js @@ -69,8 +69,6 @@ import template from './filterdialog.template.html'; if (options.mode === 'livetvchannels') { context.querySelector('.chkFavorite').checked = query.IsFavorite === true; - context.querySelector('.chkLikes').checked = query.IsLiked === true; - context.querySelector('.chkDislikes').checked = query.IsDisliked === true; } else { for (const elem of context.querySelectorAll('.chkStandardFilter')) { const filters = `,${query.Filters || ''}`; @@ -237,19 +235,6 @@ import template from './filterdialog.template.html'; for (const elem of context.querySelectorAll('.chkFavorite')) { 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 { for (const elem of context.querySelectorAll('.chkStandardFilter')) { elem.addEventListener('change', () => this.onStandardFilterChange(elem)); diff --git a/src/components/filterdialog/filterdialog.template.html b/src/components/filterdialog/filterdialog.template.html index 9e873c28dc..d46c177fe3 100644 --- a/src/components/filterdialog/filterdialog.template.html +++ b/src/components/filterdialog/filterdialog.template.html @@ -23,15 +23,6 @@ data-filter="IsFavorite" /> ${Favorites} - -