fix: Realtime update message for import types
This commit is contained in:
parent
a1216c929e
commit
d960affe19
1 changed files with 5 additions and 5 deletions
|
|
@ -7,11 +7,11 @@ frappe.ui.form.on('Data Import Beta', {
|
|||
let percent = Math.floor((data.current * 100) / data.total);
|
||||
let message;
|
||||
if (data.success) {
|
||||
message = __('Importing {0} ({1} of {2})', [
|
||||
data.docname,
|
||||
data.current,
|
||||
data.total
|
||||
]);
|
||||
let message_args = [data.docname, data.current, data.total];
|
||||
message =
|
||||
frm.doc.import_type === 'Insert New Records'
|
||||
? __('Importing {0} ({1} of {2})', message_args)
|
||||
: __('Updating {0} ({1} of {2})', message_args);
|
||||
}
|
||||
if (data.skipping) {
|
||||
message = __('Skipping ({1} of {2})', [data.current, data.total]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue