reset progress for artists if playing is done
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Artem Anufrij
2023-09-19 16:20:21 +02:00
parent 724f35dfb1
commit 733b8eee91
2 changed files with 9 additions and 4 deletions

View File

@@ -203,8 +203,13 @@ export default {
this.audio.play();
}
},
reset(container) {
this.$store.dispatch("user/resetProgress", container);
reset(item) {
let parentId = item.parent._id;
if (item.parent.parent && item.parent.parent.tracks) {
parentId = item.parent.parent._id;
}
console.log(parentId);
this.$store.dispatch("user/resetProgress", parentId);
window.clearInterval(this.intervalProgress);
window.clearInterval(this.intervalState);