fix: Minor changes
This commit is contained in:
parent
5e61b17cf8
commit
b793cc8e1e
@ -2,7 +2,7 @@
|
|||||||
<div class="nav-buttons">
|
<div class="nav-buttons">
|
||||||
<button class='btn btn-outline-secondary' @click="$router.go(-1)">Back</button>
|
<button class='btn btn-outline-secondary' @click="$router.go(-1)">Back</button>
|
||||||
<button v-if="nextContent" class='btn btn-primary' @click="goNext()">Next</button>
|
<button v-if="nextContent" class='btn btn-primary' @click="goNext()">Next</button>
|
||||||
<button v-else class='btn btn-primary' @click="finish()">Finish Course</button>
|
<button v-else class='btn btn-primary' @click="finish()">Finish Topic</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ export default {
|
|||||||
{
|
{
|
||||||
course: this.$route.params.course_name,
|
course: this.$route.params.course_name,
|
||||||
content_type: this.$route.params.type,
|
content_type: this.$route.params.type,
|
||||||
content: this.$route.params.content
|
content: this.$route.params.content,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -29,8 +29,7 @@ export default {
|
|||||||
},
|
},
|
||||||
finish() {
|
finish() {
|
||||||
this.addActivity()
|
this.addActivity()
|
||||||
this.$router.push({ name: 'program', params: { program_name: this.$route.params.program_name}})
|
this.$router.push({ name: 'course', params: { program_name: this.$route.params.program_name, course_name: this.$route.params.course_name}})
|
||||||
//
|
|
||||||
lms.trigger('course-completed', course_name);
|
lms.trigger('course-completed', course_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user