Skip to content

Commit

Permalink
fix(webui): fix search tabs and album tracklist
Browse files Browse the repository at this point in the history
  • Loading branch information
ericklucena authored and bambanah committed Oct 4, 2024
1 parent a1e44ec commit 5f610aa
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-elephants-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"deezer-sdk": minor
---

Fix caching to allow search pagination to work properly
5 changes: 5 additions & 0 deletions .changeset/sixty-jobs-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"deemix-webui": patch
---

Minor fixes to ensure search views load as expected
5 changes: 5 additions & 0 deletions webui/src/client/views/SearchView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ function handleMainSearch(newValue) {
state.results.allTab.ARTIST.hasLoaded = true;
state.results.allTab.PLAYLIST.hasLoaded = true;
state.results.trackTab = newValue.TRACK;
state.results.albumTab = newValue.ALBUM;
state.results.artistTab = newValue.ARTIST;
state.results.playlistTab = newValue.PLAYLIST;
if (lastTab.value && lastTab.value.searchType !== "all") {
state.currentTab = lastTab.value;
Expand Down
4 changes: 2 additions & 2 deletions webui/src/client/views/TracklistView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function showAlbum(data) {
artist: { name: artistName },
tracks: albumTracks,
nb_tracks: numberOfTracks,
release_date,
release_date: albumReleaseDate,
cover_xl,
} = data;
Expand All @@ -75,7 +75,7 @@ function showAlbum(data) {
"globals.listTabs.trackN",
numberOfTracks
)}`;
release_date.value = release_date.substring(0, 10);
release_date.value = albumReleaseDate.substring(0, 10);
image.value = cover_xl;
if (isEmpty(albumTracks)) {
Expand Down

0 comments on commit 5f610aa

Please sign in to comment.