Refactored Course Progression Logic

This commit is contained in:
scmmishra
2018-11-20 18:37:01 +05:30
committed by Aditya Hase
parent 1192529698
commit a592f70d4a
4 changed files with 55 additions and 82 deletions

View File

@@ -13,9 +13,10 @@ export default {
methods: {
addActivity() {
if(this.$route.params.type != "Quiz"){
console.log("Adding Activity")
lms.call("add_activity",
{
enrollment: lms.store.enrolledCourses[this.$route.params.course],
course: this.$route.params.course,
content_type: this.$route.params.type,
content: this.$route.params.content
}