Merge pull request #469 from pateljannat/job-changes

This commit is contained in:
Jannat Patel
2023-01-16 09:54:58 +05:30
committed by GitHub
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");
}, },
}); });