From 8377b59217b4f4bcd56c55fc6fb1a801e11edf23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 2 Oct 2020 11:05:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Add=20new=20upload=20state=20"Re?= =?UTF-8?q?freshing=20list"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit That will hopefully make it easier to determine whether any slow uploads are caused by file processing (e.g. by plugins) in the backend during saving, or by refreshing the file list from the backend after successful upload. As discussed here: https://community.octoprint.org/t/24644/13 --- src/octoprint/static/js/app/viewmodels/files.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index 5500efc01..76e9cbbcc 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -1251,6 +1251,8 @@ $(function() { }; self._handleUploadDone = function(e, data) { + self._setProgressBar(100, gettext("Refreshing list ..."), true); + var focus = undefined; if (data.result.files.hasOwnProperty("sdcard")) { focus = {location: "sdcard", path: data.result.files.sdcard.path};