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:
geoffrey45
2022-08-15 10:25:34 +03:00
parent 1f374eeda1
commit e1c9cfa99b
17 changed files with 122 additions and 79 deletions
+4 -2
View File
@@ -6,7 +6,7 @@
<template #content>
<Content
:tracks="playlist.tracks"
:count="playlist.info.count"
:count="playlist.info?.count"
:name="playlist.info.name"
:playlistid="playlist.info.playlistid"
/>
@@ -25,7 +25,7 @@ import Content from "./Content.vue";
import FeaturedArtists from "@/components/PlaylistView/FeaturedArtists.vue";
import usePTrackStore from "@/stores/pages/playlist";
import { onBeforeUnmount, onMounted } from "vue";
import { onMounted, onUnmounted } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
@@ -34,6 +34,8 @@ const playlist = usePTrackStore();
onMounted(() => {
playlist.fetchArtists(route.params.pid as string);
});
onUnmounted(() => playlist.reset());
</script>
<style lang="scss"></style>