Skip to content

Commit 89c4772

Browse files
committed
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>
1 parent ef765c4 commit 89c4772

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/files/js/operationprogressbar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
$('#uploadprogressbar').fadeOut(function() {
3030
self.$el.trigger(new $.Event('resized'));
3131
});
32+
this.setProgressBarText('', '');
3233
},
3334

3435
hideCancelButton: function() {

0 commit comments

Comments
 (0)