mirror of
https://github.com/frappe/lms.git
synced 2026-04-19 22:52:29 +03:00
fix: misc issues
This commit is contained in:
@@ -421,6 +421,8 @@ const canGradeSubmission = computed(() => {
|
||||
const canModifyAssignment = computed(() => {
|
||||
if (canGradeSubmission.value) {
|
||||
return true
|
||||
} else if (props.submissionName == 'new') {
|
||||
return true
|
||||
} else if (
|
||||
submissionResource.doc?.owner == user.data?.name &&
|
||||
submissionResource.doc?.status == 'Not Graded'
|
||||
|
||||
@@ -151,6 +151,10 @@ const enrollInBatch = () => {
|
||||
},
|
||||
})
|
||||
},
|
||||
onError(err) {
|
||||
toast.error(__(err.messages?.[0] || err))
|
||||
console.error(err)
|
||||
},
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@@ -8,17 +8,16 @@ app_publisher = "Frappe"
|
||||
app_description = "Open Source Learning Management System built with Frappe Framework"
|
||||
app_icon_url = "/assets/lms/images/lms-logo.png"
|
||||
app_icon_title = "Learning"
|
||||
app_icon_route = "/lms"
|
||||
app_color = "grey"
|
||||
app_email = "jannat@frappe.io"
|
||||
app_license = "AGPL"
|
||||
|
||||
|
||||
def get_lms_path():
|
||||
return (frappe.conf.get("lms_path") or "lms").strip("/")
|
||||
return (frappe.conf.get("lms_path") if frappe.conf else "lms").strip("/")
|
||||
|
||||
|
||||
app_icon_route = f"/{get_lms_path()}"
|
||||
|
||||
# Includes in <head>
|
||||
# ------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user