implement play next and add to Queue

This commit is contained in:
geoffrey45
2022-05-10 08:24:08 +03:00
parent d49cc65903
commit bee37742c3
5 changed files with 37 additions and 8 deletions
+3 -2
View File
@@ -63,6 +63,7 @@
import perks from "../../composables/perks.js";
import useContextStore from "../../stores/context";
import useModalStore from "../../stores/modal";
import useQueueStore from "../../stores/queue";
import { ContextSrc } from "../../composables/enums";
import { ref } from "vue";
@@ -71,7 +72,7 @@ import { Track } from "../../interfaces.js";
import { paths } from "../../config";
const contextStore = useContextStore();
const modalStore = useModalStore();
const context_on = ref(false);
const imguri = paths.images.thumb
@@ -79,7 +80,7 @@ const showContextMenu = (e: Event) => {
e.preventDefault();
e.stopPropagation();
const menus = trackContext(props.song, modalStore);
const menus = trackContext(props.song, useModalStore, useQueueStore);
contextStore.showContextMenu(e, menus, ContextSrc.Track);
context_on.value = true;
+2 -2
View File
@@ -43,11 +43,11 @@ import { ContextSrc } from "../../composables/enums";
import useContextStore from "../../stores/context";
import useModalStore from "../../stores/modal";
import useQueueStore from "../../stores/queue";
import { paths } from "../../config";
const contextStore = useContextStore();
const modalStore = useModalStore();
const imguri = paths.images.thumb
const props = defineProps<{
@@ -62,7 +62,7 @@ const showContextMenu = (e: Event) => {
e.preventDefault();
e.stopPropagation();
const menus = trackContext(props.track, modalStore);
const menus = trackContext(props.track, useModalStore, useQueueStore);
contextStore.showContextMenu(e, menus, ContextSrc.Track);
context_on.value = true;