fix: misc issues

This commit is contained in:
Jannat Patel
2026-03-09 11:34:28 +05:30
parent 0a587e5598
commit 735a3f4b00
3 changed files with 8 additions and 3 deletions

View File

@@ -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'

View File

@@ -151,6 +151,10 @@ const enrollInBatch = () => {
},
})
},
onError(err) {
toast.error(__(err.messages?.[0] || err))
console.error(err)
},
}
)
}

View File

@@ -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>
# ------------------