save and restore video progress
This commit is contained in:
@@ -16,6 +16,8 @@ export default {
|
||||
let currentIndex = video.parent.videos.indexOf(video);
|
||||
if (currentIndex < video.parent.videos.length - 1) {
|
||||
context.dispatch("play", video.parent.videos[currentIndex + 1]);
|
||||
} else {
|
||||
this.dispatch("user/resetProgress", video.parent._id);
|
||||
}
|
||||
},
|
||||
convertNextTo(context, payload) {
|
||||
|
||||
Reference in New Issue
Block a user