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 authored and backportbot-nextcloud[bot] committed Oct 9, 2023
1 parent 0f4151c commit a797dcb
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 a797dcb

Please sign in to comment.