From a38576f59a6feab8eeef6c73152ee0488aa798f7 Mon Sep 17 00:00:00 2001
From: Jonas Heinrich <onny@project-insanity.org>
Date: Sun, 27 Dec 2020 23:26:23 +0100
Subject: [PATCH] fix searching podcasts

---
 src/components/Table.vue | 12 ++----------
 src/views/Show.vue       |  7 ++++++-
 2 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/src/components/Table.vue b/src/components/Table.vue
index 2fb95af..fc1b312 100644
--- a/src/components/Table.vue
+++ b/src/components/Table.vue
@@ -43,10 +43,8 @@
 				:key="idx"
 				:class="{ selected: idx === activeItem}">
 				<td class="iconColumn">
-					<div class="imageWrapper">
-						<div v-lazy:background-image="episode.imgURL"
-							class="episodeImage" />
-					</div>
+					<div v-lazy:background-image="episode.imgURL"
+						class="episodeImage" />
 				</td>
 				<td
 					class="nameColumn"
@@ -251,12 +249,6 @@ table.episodeTable {
 			padding-right: 0px;
 			padding-left: 35px;
 
-			.imageWrapper {
-				width: 74px;
-				height: 74px;
-				background: #ccc;
-			}
-
 			.episodeImage {
 				width: 74px;
 				height: 74px;
diff --git a/src/views/Show.vue b/src/views/Show.vue
index 75f3ae9..b251753 100644
--- a/src/views/Show.vue
+++ b/src/views/Show.vue
@@ -79,7 +79,12 @@ export default {
 		},
 	},
 	watch: {
-		$route: 'onRoute',
+		'$route'(to, from) {
+			this.loading = true
+			this.nextPage = null
+			this.podcastId = to.params.id
+			this.queryPodcast(this.podcastId)
+		},
 		'player.volume'(newVolume, oldVolume) {
 			if (audioPlayer !== null) {
 				audioPlayer.volume(newVolume)
-- 
GitLab