Explorar el Código

fix(Station page): queue items have correct thumbnails, songslist is cleared on leaving station

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan hace 4 años
padre
commit
f0fe3dbcb9

+ 2 - 1
backend/logic/stations.js

@@ -612,7 +612,8 @@ class _StationsModule extends CoreClass {
 									songId: song.songId,
 									songId: song.songId,
 									title: song.title,
 									title: song.title,
 									artists: song.artists,
 									artists: song.artists,
-									duration: song.duration
+									duration: song.duration,
+									thumbnail: song.thumbnail
 								};
 								};
 								lessInfoPlaylist.push(newSong);
 								lessInfoPlaylist.push(newSong);
 							}
 							}

+ 1 - 1
frontend/src/pages/Station/components/Sidebar/Queue/index.vue

@@ -149,7 +149,7 @@ export default {
 			margin-bottom: 20px;
 			margin-bottom: 20px;
 		}
 		}
 
 
-		.queue-item:not(:last-of-type) {
+		.queue-item {
 			margin-bottom: 10px;
 			margin-bottom: 10px;
 		}
 		}
 	}
 	}

+ 3 - 0
frontend/src/pages/Station/index.vue

@@ -636,6 +636,9 @@ export default {
 		}
 		}
 	},
 	},
 	beforeDestroy() {
 	beforeDestroy() {
+		/** Reset Songslist */
+		this.updateSongsList([]);
+
 		const shortcutNames = [
 		const shortcutNames = [
 			"station.pauseResume",
 			"station.pauseResume",
 			"station.skipStation",
 			"station.skipStation",