Commit 055c95d3 authored by Tim Honcoop's avatar Tim Honcoop
Browse files

Fixes navigation

parent 96fbb81b
Pipeline #2523 failed with stages
in 1 minute and 1 second
......@@ -547,7 +547,7 @@ export default {
this.setCoursePages(path);
} else if (this.level === 4) {
// Set subitem
this.selectedSubitem = split[3];
this.selectedSubitem = split[this.level];
if (this.selectedSubitem === "videos") {
this.getVideos();
} else if (this.selectedSubitem === "quizzes") {
......
......@@ -312,8 +312,6 @@ export default {
}
},
setVideoData() {
console.log(this.videoData);
// Set url to the next item
if (this.videoData.next_item.category !== "") {
let result = util.parseItem(
......
......@@ -124,7 +124,7 @@ export default {
//Warning thresholds
warnings: this.$store.state.warnings,
finished_warning: this.$store.state.watchval,
dislike_warning: this.$store.state.dislikeval,
dislike_warning: this.$store.state.dislikeval
};
},
// Set the link variable to the path of the current page.
......@@ -152,7 +152,6 @@ export default {
util
.getVideos(this.courseId, this.$store.state.filters)
.then(response => {
console.log(response.data);
if (response.data.length > 0) {
this.isLoading = false;
this.lessons = util.convertToLessons(response.data);
......@@ -166,8 +165,8 @@ export default {
this.loadingText = strings.connection_error;
});
}
},
},
}
}
};
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment