Merge pull request #24616 from akhilnarang/fix-import-log-success-rows

fix: show successful rows in the import log
This commit is contained in:
Akhil Narang 2024-01-30 17:26:36 +05:30 committed by GitHub
commit 075ce78fbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 9 deletions

View file

@ -506,13 +506,7 @@ 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;

View file

@ -139,7 +139,7 @@
"default": "0",
"fieldname": "show_failed_logs",
"fieldtype": "Check",
"label": "Show Failed Logs"
"label": "Show Only Failed Logs"
},
{
"depends_on": "eval:!doc.__islocal && !doc.import_file",
@ -171,7 +171,7 @@
],
"hide_toolbar": 1,
"links": [],
"modified": "2023-12-15 12:45:49.452834",
"modified": "2024-01-30 17:08:05.566686",
"modified_by": "Administrator",
"module": "Core",
"name": "Data Import",

View file

@ -38,7 +38,6 @@ class DataImport(Document):
submit_after_import: DF.Check
template_options: DF.Code | None
template_warnings: DF.Code | None
# end: auto-generated types
def validate(self):