fix fuzzy search: FuseTrackOptions

+ reduce width required to hide sidebar automatically
+ move ArtistAlbumsFetcher.vue to components folder
+ escape ALT button in keyboard shortcuts
+ use elem.dispatchEvent to toggle page search
This commit is contained in:
geoffrey45
2022-12-06 14:51:44 +03:00
committed by Mungai Njoroge
parent 580dce1da9
commit 26ab972a8d
14 changed files with 74 additions and 59 deletions
+8 -3
View File
@@ -36,9 +36,9 @@ import Header from "@/components/ArtistView/Header.vue";
import TopTracks from "@/components/ArtistView/TopTracks.vue";
import useArtistPageStore from "@/stores/pages/artist";
import ArtistAlbums from "@/components/AlbumView/ArtistAlbums.vue";
import ArtistAlbumsFetcher from "./ArtistAlbumsFetcher.vue";
import ArtistAlbumsFetcher from "@/components/ArtistView/ArtistAlbumsFetcher.vue";
import { computed } from "vue";
import { onBeforeRouteUpdate } from "vue-router";
import { onBeforeRouteLeave, onBeforeRouteUpdate } from "vue-router";
const store = useArtistPageStore();
@@ -86,9 +86,14 @@ const scrollerItems = computed(() => {
});
onBeforeRouteUpdate(async (to) => {
await store.getData(to.params.hash as string);
});
onBeforeRouteLeave(async () => {
setTimeout(() => {
store.resetAlbums();
}, 400);
});
</script>
<style lang="scss">