feat: see on website link for lms certificate
This commit is contained in:
@@ -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')
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user