Skip to content

Commit

Permalink
fix(data_import): respect the value of show_failed_logs checkbox
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
(cherry picked from commit 34f03a2)
  • Loading branch information
akhilnarang authored and mergify[bot] committed Dec 28, 2023
1 parent 8fe056e commit d847c66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frappe/core/doctype/data_import/data_import.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,13 @@ frappe.ui.form.on("Data Import", {
},

show_import_log(frm) {
if (!frm.doc.show_failed_logs) {
frm.toggle_display("import_log_preview", false);
return;
}

frm.toggle_display("import_log_section", false);
frm.toggle_display("import_log_preview", true);

if (frm.import_in_progress) {
return;
Expand Down

0 comments on commit d847c66

Please sign in to comment.