fix scrollbars being hidden when sidebar is disabled on firefox

+ rename components, to follow vue style guides
This commit is contained in:
geoffrey45
2022-09-28 08:35:26 +03:00
committed by Mungai Njoroge
parent 62b9aa7a3e
commit 6fb9c0fc4a
24 changed files with 34 additions and 49 deletions
+32
View File
@@ -0,0 +1,32 @@
<template>
<Layout :tracks="playlist.tracks" @playFromPage="playFromPlaylistPage">
<template #header>
<Header :info="playlist.info" />
</template>
</Layout>
</template>
<script setup lang="ts">
import { onBeforeRouteLeave } from "vue-router";
import useQueueStore from "@/stores/queue";
import usePlaylistStore from "@/stores/pages/playlist";
import Layout from "@/layouts/HeaderAndVList.vue";
import Header from "@/components/PlaylistView/Header.vue";
const queue = useQueueStore();
const playlist = usePlaylistStore();
function playFromPlaylistPage(index: number) {
const { name, playlistid } = playlist.info;
queue.playFromPlaylist(name, playlistid, playlist.allTracks);
queue.play(index);
}
onBeforeRouteLeave(() => {
setTimeout(() => {
playlist.resetQuery();
}, 500);
});
</script>