From a797dcbbc43ad7a226807f58bf1e2a4478aed0ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Thu, 21 Sep 2023 14:37:31 +0200 Subject: [PATCH] Clear progress bar text when hiding it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When files are uploaded the progress bar text is set accordingly. However, other operations that show the progress bar, like deleting files, do not explicitly set any text. Due to that, when the progress bar was shown again after uploading files the text did not match the operation. To solve that now the text is cleared when the progress bar is hidden (it is not cleared when it is shown as in some cases the text is set already before showing the progress bar). Signed-off-by: Daniel Calviño Sánchez --- apps/files/js/operationprogressbar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/files/js/operationprogressbar.js b/apps/files/js/operationprogressbar.js index 90ad71c7c2df3..c9ca18b1ae3bf 100755 --- a/apps/files/js/operationprogressbar.js +++ b/apps/files/js/operationprogressbar.js @@ -29,6 +29,7 @@ $('#uploadprogressbar').fadeOut(function() { self.$el.trigger(new $.Event('resized')); }); + this.setProgressBarText('', ''); }, hideCancelButton: function() {