diff --git a/erpnext/education/utils.py b/erpnext/education/utils.py index bf7327b17e7..5fee69b2f43 100644 --- a/erpnext/education/utils.py +++ b/erpnext/education/utils.py @@ -124,4 +124,12 @@ def enroll_all_courses_in_program(program_enrollment, student): def check_activity_exists(enrollment, content_type, content): activity = frappe.get_all("Course Activity", filters={'enrollment': enrollment, 'content_type': content_type, 'content': content}) - return bool(activity) \ No newline at end of file + return bool(activity) + +# def get_home_page(user): +# print("----------------------------------------------------------------------") +# print("Let's do a lot of magic") +# if get_current_student(): +# return 'lms#/Profile' +# else: +# return None \ No newline at end of file diff --git a/erpnext/hooks.py b/erpnext/hooks.py index 61b8ae3bbe2..178b732e4a1 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -170,9 +170,11 @@ default_roles = [ ] role_home_page = { - "LMS User": "lms" + "LMS User": "`lms`" } +# get_website_user_home_page = "erpnext.education.utils.get_home_page" + has_website_permission = { "Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission", "Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission", diff --git a/erpnext/public/js/education/lms/components/CourseCard.vue b/erpnext/public/js/education/lms/components/CourseCard.vue index 4718347ba1d..8aa553c823a 100644 --- a/erpnext/public/js/education/lms/components/CourseCard.vue +++ b/erpnext/public/js/education/lms/components/CourseCard.vue @@ -55,7 +55,7 @@ export default { if (this.courseMeta.flag == "Start Course" ){ return "primary" } - else if (this.courseMeta.flag == "Complete" ) { + else if (this.courseMeta.flag == "Completed" ) { return "success" } else if (this.courseMeta.flag == "Continue" ) { diff --git a/erpnext/public/js/education/lms/components/ProgressCard.vue b/erpnext/public/js/education/lms/components/ProgressCard.vue index ad38de9a4be..f6a70b7442f 100644 --- a/erpnext/public/js/education/lms/components/ProgressCard.vue +++ b/erpnext/public/js/education/lms/components/ProgressCard.vue @@ -11,7 +11,7 @@ Courses