Refactored lms store

This commit is contained in:
scmmishra
2018-11-19 17:08:40 +05:30
committed by Aditya Hase
parent 0a5c7a6b46
commit 53c2d5db63
4 changed files with 16 additions and 20 deletions

View File

@@ -40,17 +40,17 @@ export default {
// });
},
methods: {
startCourse() {
this.getContentForNextCourse()
.then((data) =>
this.$router.push(`/Program/${this.program_name}/${data.course}/${data.content_type}/${data.content}`)
)
},
getContentForNextCourse() {
return lms.call('get_continue_data', {
program_name: this.program_name
});
},
// startCourse() {
// this.getContentForNextCourse()
// .then((data) =>
// this.$router.push(`/Program/${this.program_name}/${data.course}/${data.content_type}/${data.content}`)
// )
// },
// getContentForNextCourse() {
// return lms.call('get_continue_data', {
// program_name: this.program_name
// });
// },
getProgramDetails() {
return lms.call('get_program_details', {
program_name: this.program_name