Browse Source

Clear progress bar text when hiding it

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 <danxuliu@gmail.com>
Daniel Calviño Sánchez 9 months ago
parent
commit
a797dcbbc4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/files/js/operationprogressbar.js

+ 1 - 0
apps/files/js/operationprogressbar.js

@@ -29,6 +29,7 @@
 			$('#uploadprogressbar').fadeOut(function() {
 				self.$el.trigger(new $.Event('resized'));
 			});
+			this.setProgressBarText('', '');
 		},
 
 		hideCancelButton: function() {