Skip to content

Commit

Permalink
Clear progress bar text when hiding it
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
danxuliu committed Sep 21, 2023
1 parent f08d781 commit d1e2154
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/files/js/operationprogressbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
$('#uploadprogressbar').fadeOut(function() {
self.$el.trigger(new $.Event('resized'));
});
this.setProgressBarText('', '');
},

hideCancelButton: function() {
Expand Down

0 comments on commit d1e2154

Please sign in to comment.