Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented May 28, 2025

Summary

We try to open a file in the Nextcloud client.
If this fails a dialog is shown with 3 options:

  1. Retry: If it fails no further dialog is shown.
  2. Open online: The viewer is used to open the file.
  3. Close the dialog and nothing happens (abort).

This correctly implements 3 and also adds some comments + order file in reading order (using function instead of arrow functions allows this easily).

Checklist

@susnux susnux added this to the Nextcloud 32 milestone May 28, 2025
@susnux susnux requested review from a team and skjnldsv as code owners May 28, 2025 14:53
@susnux susnux requested review from artonge and szaimen and removed request for a team May 28, 2025 14:53
@susnux
Copy link
Contributor Author

susnux commented May 28, 2025

/backport to stable31

@susnux
Copy link
Contributor Author

susnux commented May 28, 2025

/backport to stable30

@szaimen szaimen requested review from Jerome-Herbinet and nfebe and removed request for szaimen May 28, 2025 14:54
@AndyScherzinger AndyScherzinger enabled auto-merge May 28, 2025 17:29
@nextcloud-command nextcloud-command requested a review from a team as a code owner May 28, 2025 17:32
@AndyScherzinger
Copy link
Member

Test failures seem legitimate @susnux

@susnux susnux force-pushed the fix/view-local-close branch from 29487ce to 87a855b Compare May 28, 2025 18:54
@susnux
Copy link
Contributor Author

susnux commented May 28, 2025

Test failures seem legitimate

wonder how this could ever worked, but fixed it ✅

We try to open a file in the Nextcloud client.
If this fails a dialog is shown with 3 options:

1. Retry: If it fails no further dialog is shown.
2. Open online: The viewer is used to open the file.
3. Close the dialog and nothing happens (abort).

This correctly implements 3 and also adds some comments + order file in
reading order (using `function` instead of arrow functions allows this
easily).

Signed-off-by: Ferdinand Thiessen <[email protected]>
@AndyScherzinger
Copy link
Member

/compile /

Signed-off-by: nextcloud-command <[email protected]>
@AndyScherzinger AndyScherzinger merged commit f242312 into master May 29, 2025
123 of 124 checks passed
@AndyScherzinger AndyScherzinger deleted the fix/view-local-close branch May 29, 2025 00:05
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]: "Edit locally" modal's close icon opens the file in the web UI

6 participants