fix(data_exporter): download template button
This commit is contained in:
parent
2b383ed62a
commit
c19d16c7f8
1 changed files with 4 additions and 1 deletions
|
|
@ -208,7 +208,6 @@ frappe.data_import.DataExporter = class DataExporter {
|
|||
}
|
||||
|
||||
update_record_count_message() {
|
||||
let export_records = this.dialog.get_value("export_records");
|
||||
let count_method = {
|
||||
all: () => frappe.db.count(this.doctype),
|
||||
by_filter: () =>
|
||||
|
|
@ -219,6 +218,10 @@ frappe.data_import.DataExporter = class DataExporter {
|
|||
"5_records": () => Promise.resolve(5),
|
||||
};
|
||||
|
||||
let export_records = this.dialog.get_value("export_records");
|
||||
|
||||
if (!export_records || !count_method[export_records]) return;
|
||||
|
||||
count_method[export_records]().then((value) => {
|
||||
let message = "";
|
||||
value = parseInt(value, 10);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue