Skip to content

Commit

Permalink
fix(LMS Batch): add portal web link to form view
Browse files Browse the repository at this point in the history
  • Loading branch information
NagariaHussain committed Nov 27, 2023
1 parent fd9a638 commit d6ac493
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lms/lms/doctype/lms_batch/lms_batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ frappe.ui.form.on("LMS Batch", {
timetable_template: function (frm) {
set_timetable(frm);
},

refresh: (frm) => {
frm.add_web_link(`/batches/details/${frm.doc.name}`, "See on website");
},
});

const set_timetable = (frm) => {
Expand Down

0 comments on commit d6ac493

Please sign in to comment.