mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
remove bottom content
This commit is contained in:
+14
-2
@@ -1,3 +1,5 @@
|
||||
// @ts-strict
|
||||
|
||||
import { defineStore } from "pinia";
|
||||
import state from "../composables/state";
|
||||
import { NotifType, useNotifStore } from "./notification";
|
||||
@@ -102,8 +104,18 @@ export default defineStore("Queue", {
|
||||
};
|
||||
});
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
.catch((err: ErrorEvent) => {
|
||||
err.stopImmediatePropagation();
|
||||
useNotifStore().showNotification(
|
||||
"Can't play: " + track.title,
|
||||
NotifType.Error
|
||||
);
|
||||
|
||||
if (this.current !== this.tracklist.length - 1) {
|
||||
setTimeout(() => {
|
||||
this.playNext();
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
},
|
||||
playPause() {
|
||||
|
||||
Reference in New Issue
Block a user