fix: see on website link in job opportunity
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on("Job Opportunity", {
|
||||
// refresh: function(frm) {
|
||||
// }
|
||||
refresh: (frm) => {
|
||||
if (frm.doc.name)
|
||||
frm.add_web_link(`/jobs/${frm.doc.name}`, "See on Website");
|
||||
},
|
||||
});
|
||||
|
||||
@@ -28,6 +28,6 @@ frappe.ui.form.on("LMS Course", {
|
||||
});
|
||||
},
|
||||
refresh: (frm) => {
|
||||
frm.add_web_link(`/courses/${frm.doc.name}`, "View in Website");
|
||||
frm.add_web_link(`/courses/${frm.doc.name}`, "See on Website");
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user