feat: see on website link for lms certificate

This commit is contained in:
Jannat Patel
2022-05-13 19:47:36 +05:30
parent fa49dc08a3
commit 4fb2241621

View File

@@ -2,7 +2,7 @@
// For license information, please see license.txt
frappe.ui.form.on('LMS Certificate', {
onload: function (frm) {
onload: (frm) => {
frm.set_query("member", function (doc) {
return {
filters: {
@@ -10,5 +10,8 @@ frappe.ui.form.on('LMS Certificate', {
}
};
});
},
refresh: (frm) => {
if (frm.doc.name) frm.add_web_link(`/courses/${frm.doc.course}/${frm.doc.name}`, 'See on Website')
}
});