Skip to content

Conversation

@danxuliu
Copy link
Member

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).

In Nextcloud 28 this issue no longer happens after moving the Files app to Vue, so the fix is only for Nextcloud 27 and below.

How to test

  • Open the Files app
  • Upload one or more files
  • Delete one or more files

Result with this pull request

The progress bar shown while deleting the file does not have any text

Result without this pull request

The progress bar shown while deleting the file has Uploading... or something similar (the last text shown when uploading the file)

@danxuliu danxuliu added this to the Nextcloud 27.1.2 milestone Sep 21, 2023
@danxuliu danxuliu requested review from a team, Pytal, susnux and szaimen and removed request for a team September 21, 2023 18:13
@danxuliu
Copy link
Member Author

/backport to stable26

@danxuliu
Copy link
Member Author

/backport to stable25

@danxuliu danxuliu force-pushed the clear-progress-bar-text-when-hiding-it branch from d1e2154 to 89c4772 Compare September 25, 2023 01:08
@danxuliu
Copy link
Member Author

Rebased on latest stable27 now that the failing CI step for Node was fixed.

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explanation makes sense but didnt test

@susnux susnux added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 25, 2023
@blizzz blizzz mentioned this pull request Sep 26, 2023
@blizzz blizzz mentioned this pull request Oct 9, 2023
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 <[email protected]>
@blizzz blizzz force-pushed the clear-progress-bar-text-when-hiding-it branch from 89c4772 to 39bd125 Compare October 9, 2023 20:44
@danxuliu danxuliu merged commit feccf26 into stable27 Oct 9, 2023
@danxuliu danxuliu deleted the clear-progress-bar-text-when-hiding-it branch October 9, 2023 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants