Przeglądaj źródła

fix: progress bar not disappearing (#18375) (#18392)

* fix: progress bar not disappearing

* style: format

[skip ci]

Co-authored-by: Ankush Menat <ankush@frappe.io>
(cherry picked from commit 729be707cb)

Co-authored-by: stephen <stephenBDT@users.noreply.github.com>
version-14
mergify[bot] 2 lat temu
committed by GitHub
rodzic
commit
e0d6d0b7b1
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 10 usunięć
  1. +7
    -10
      frappe/public/js/frappe/socketio_client.js

+ 7
- 10
frappe/public/js/frappe/socketio_client.js Wyświetl plik

@@ -42,16 +42,13 @@ frappe.socketio = {
data.percent = (flt(data.progress[0]) / data.progress[1]) * 100;
}
if (data.percent) {
if (data.percent == 100) {
frappe.hide_progress();
} else {
frappe.show_progress(
data.title || __("Progress"),
data.percent,
100,
data.description
);
}
frappe.show_progress(
data.title || __("Progress"),
data.percent,
100,
data.description,
true
);
}
});



Ładowanie…
Anuluj
Zapisz