mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
add experimental remove from queue action
+ show albumartist on TrackItem if artists == "" + add action to reset playlist page artists to prevent content flashes + remove use of defaultTrackItem
This commit is contained in:
@@ -20,8 +20,8 @@ export default defineStore("playlist-tracks", {
|
||||
async fetchAll(playlistid: string) {
|
||||
const playlist = await getPlaylist(playlistid);
|
||||
|
||||
this.info = playlist.info;
|
||||
this.tracks = playlist.tracks;
|
||||
this.info = playlist?.info || ({} as Playlist);
|
||||
this.tracks = playlist?.tracks || [];
|
||||
},
|
||||
|
||||
async fetchArtists(playlistid: string) {
|
||||
@@ -35,5 +35,8 @@ export default defineStore("playlist-tracks", {
|
||||
updatePInfo(info: Playlist) {
|
||||
this.info = info;
|
||||
},
|
||||
resetArtists() {
|
||||
this.artists = [];
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user