From 6d138ae905be2426ba5b893947ca16133f34bcb3 Mon Sep 17 00:00:00 2001 From: mfcar Date: Sun, 19 Feb 2023 20:07:32 +0000 Subject: [PATCH 1/4] Add episode filter --- .../components/modals/podcast/EpisodeFeed.vue | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/client/components/modals/podcast/EpisodeFeed.vue b/client/components/modals/podcast/EpisodeFeed.vue index be701f3a..92d56ba3 100644 --- a/client/components/modals/podcast/EpisodeFeed.vue +++ b/client/components/modals/podcast/EpisodeFeed.vue @@ -6,9 +6,14 @@
+
+
+ + +
{ + if (!this.searchText) return true + return ( + (episode.title && episode.title.toLowerCase().includes(this.searchText)) || + (episode.subtitle && episode.subtitle.toLowerCase().includes(this.searchText)) + ) + }) } }, methods: { + inputUpdate() { + clearTimeout(this.searchTimeout) + this.searchTimeout = setTimeout(() => { + if (!this.search || !this.search.trim()) { + this.searchText = '' + return + } + this.searchText = this.search.toLowerCase().trim() + }, 500) + }, toggleSelectAll(val) { for (let i = 0; i < this.episodes.length; i++) { const episode = this.episodes[i] From f650ae7f18ff4339b48adb45635d8787ef032d0e Mon Sep 17 00:00:00 2001 From: mfcar Date: Sun, 19 Feb 2023 20:48:39 +0000 Subject: [PATCH 2/4] Add episode filter on the episodes list --- .../tables/podcast/EpisodesTable.vue | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/client/components/tables/podcast/EpisodesTable.vue b/client/components/tables/podcast/EpisodesTable.vue index 39228a39..929ceced 100644 --- a/client/components/tables/podcast/EpisodesTable.vue +++ b/client/components/tables/podcast/EpisodesTable.vue @@ -19,7 +19,12 @@

{{ $strings.MessageNoEpisodes }}

-
-
+
- +
diff --git a/client/components/tables/podcast/EpisodesTable.vue b/client/components/tables/podcast/EpisodesTable.vue index 929ceced..05eaa50d 100644 --- a/client/components/tables/podcast/EpisodesTable.vue +++ b/client/components/tables/podcast/EpisodesTable.vue @@ -21,7 +21,7 @@

{{ $strings.MessageNoEpisodes }}

- +