refactor queu store to use play track using index

- this allows to have duplicate tracks in queue safely
- store indexes in localstorage instead of track objects.
This commit is contained in:
geoffrey45
2022-07-02 18:13:54 +03:00
committed by Mungai Geoffrey
parent f0d3c1c663
commit c9830842ed
10 changed files with 62 additions and 89 deletions
+2 -2
View File
@@ -74,11 +74,11 @@ const showContextMenu = (e: Event) => {
};
const emit = defineEmits<{
(e: "PlayThis", track: Track): void;
(e: "PlayThis"): void;
}>();
const playThis = (track: Track) => {
emit("PlayThis", track);
emit("PlayThis");
};
</script>