fix: see on website link in job opportunity

This commit is contained in:
Jannat Patel
2023-01-11 10:11:57 +05:30
parent 8f88518187
commit 0f60f1a58b
2 changed files with 5 additions and 3 deletions

View File

@@ -2,6 +2,8 @@
// For license information, please see license.txt // For license information, please see license.txt
frappe.ui.form.on("Job Opportunity", { 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");
},
}); });

View File

@@ -28,6 +28,6 @@ frappe.ui.form.on("LMS Course", {
}); });
}, },
refresh: (frm) => { refresh: (frm) => {
frm.add_web_link(`/courses/${frm.doc.name}`, "View in Website"); frm.add_web_link(`/courses/${frm.doc.name}`, "See on Website");
}, },
}); });