Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Jul 25, 2024

Summary

This fixes two issues with the files actions:

  1. Current the actions were handled by the FileListEntryActions component, and then weirdly accessed through the shadow DOM like $parent.$refs.something this is not reactive and leads to situations where the default actions was not correctly injected -> Tooltip was wrong
  2. We had two places where the download action was defined, first the download action and second as a fallback in the name component. So this is consolidated into only one place: The download file action. Meaning the download file action is now a default action. And if this is not injected in the name component, then the user can not download -> no fallback needed.
  3. (basically 2.1) the fallback download action was not using the encoded source, thus e.g. names with # were not correctly downloaded.

Checklist

@susnux susnux added this to the Nextcloud 30 milestone Jul 25, 2024
@susnux susnux requested review from Pytal, nfebe and sorbaugh July 25, 2024 23:52
@susnux susnux requested a review from skjnldsv as a code owner July 25, 2024 23:52
@susnux susnux changed the title Fix/files actions fix(files): Provide default file action for file entry name (on click action) Jul 25, 2024
@susnux
Copy link
Contributor Author

susnux commented Jul 25, 2024

/backport to stable29

@susnux
Copy link
Contributor Author

susnux commented Jul 25, 2024

/backport to stable28

@skjnldsv
Copy link
Member

Yeah, the old legacy link/action was too weird in the end.
It's much cleaner to only rely on the provided file actions, you're 100% right!

@blizzz blizzz mentioned this pull request Jul 30, 2024
@susnux susnux force-pushed the fix/files-actions branch from 17493b1 to 75fda61 Compare July 30, 2024 11:56
@susnux susnux force-pushed the fix/files-actions branch 8 times, most recently from 7d7ce01 to 739716c Compare July 31, 2024 23:50
susnux added 3 commits August 1, 2024 01:54
This fixes non reactive default action text of the name component.
Also use download action as default action so that only one place
is needed to define how to download a file.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Wrong tooltip (hover) on file and folder names in Nextcloud Files [Bug]: Hash in filename (e.g. #foo.docx) breaks web interface download

4 participants