Modified academy.call
to point to erpnext.www.lms
This commit is contained in:
parent
af30b771f0
commit
91bbe776c1
@ -2,7 +2,7 @@ frappe.ready(() => {
|
||||
frappe.provide('academy');
|
||||
|
||||
academy.call = (method, args) => {
|
||||
const method_path = 'erpnext.www.academy.' + method;
|
||||
const method_path = 'erpnext.www.lms.' + method;
|
||||
return new Promise((resolve, reject) => {
|
||||
return frappe.call({
|
||||
method: method_path,
|
||||
|
@ -18,7 +18,7 @@ export default {
|
||||
mounted() {
|
||||
if(this.isLoggedIn && this.$route.name == 'program'){
|
||||
frappe.call({
|
||||
method: "erpnext.www.academy.get_continue_data",
|
||||
method: "erpnext.www.lms.get_continue_data",
|
||||
args: {
|
||||
program_name: this.$route.params.program_name
|
||||
}
|
||||
@ -56,7 +56,7 @@ export default {
|
||||
}
|
||||
else {
|
||||
frappe.call({
|
||||
method: "erpnext.www.academy.enroll_in_program",
|
||||
method: "erpnext.www.lms.enroll_in_program",
|
||||
args:{
|
||||
program_name: this.$route.params.program_name,
|
||||
student_email_id: frappe.session.user
|
||||
|
@ -28,7 +28,7 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
frappe.call({
|
||||
method: "erpnext.www.academy.get_content",
|
||||
method: "erpnext.www.lms.get_content",
|
||||
args: {
|
||||
content_name: this.content,
|
||||
content_type: this.type
|
||||
|
@ -14,7 +14,7 @@ export default {
|
||||
goNext() {
|
||||
if(this.$route.params.type != "Quiz"){
|
||||
frappe.call({
|
||||
method: "erpnext.www.academy.add_activity",
|
||||
method: "erpnext.www.lms.add_activity",
|
||||
args: {
|
||||
enrollment: academy.store.enrolledCourses[this.$route.params.course],
|
||||
content_type: this.$route.params.type,
|
||||
@ -27,7 +27,7 @@ export default {
|
||||
finish() {
|
||||
if(this.$route.params.type != "Quiz"){
|
||||
frappe.call({
|
||||
method: "erpnext.www.academy.add_activity",
|
||||
method: "erpnext.www.lms.add_activity",
|
||||
args: {
|
||||
enrollment: academy.store.enrolledCourses[this.$route.params.course],
|
||||
content_type: this.$route.params.type,
|
||||
@ -36,7 +36,7 @@ export default {
|
||||
})
|
||||
}
|
||||
frappe.call({
|
||||
method: "erpnext.www.academy.mark_course_complete",
|
||||
method: "erpnext.www.lms.mark_course_complete",
|
||||
args: {
|
||||
enrollment: academy.store.enrolledCourses[this.$route.params.course]
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
frappe.call({
|
||||
method: "erpnext.www.academy.get_quiz_without_answers",
|
||||
method: "erpnext.www.lms.get_quiz_without_answers",
|
||||
args: {
|
||||
quiz_name: this.content,
|
||||
}
|
||||
@ -70,7 +70,7 @@ export default {
|
||||
},
|
||||
submitQuiz() {
|
||||
frappe.call({
|
||||
method: "erpnext.www.academy.evaluate_quiz",
|
||||
method: "erpnext.www.lms.evaluate_quiz",
|
||||
args: {
|
||||
enrollment: academy.store.enrolledCourses[this.$route.params.course],
|
||||
quiz_response: this.quizResponse,
|
||||
|
@ -47,7 +47,7 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
frappe.call({
|
||||
method: "erpnext.www.academy.get_content",
|
||||
method: "erpnext.www.lms.get_content",
|
||||
args: {
|
||||
content_name: this.content,
|
||||
content_type: this.type
|
||||
|
@ -35,7 +35,7 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
frappe.call({
|
||||
method: "erpnext.www.academy.get_next_content",
|
||||
method: "erpnext.www.lms.get_next_content",
|
||||
args:{
|
||||
content: this.content,
|
||||
content_type: this.type,
|
||||
|
Loading…
x
Reference in New Issue
Block a user