-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(files): Allow Ctrl/Command click on file entries to open in a new tab #42457
Conversation
/backport to stable28 |
4cb0c9e
to
89f7f93
Compare
/compile / |
… tab Signed-off-by: Julius Härtl <[email protected]>
89f7f93
to
2c7f632
Compare
/compile |
Signed-off-by: nextcloud-command <[email protected]>
The bot is soooo weird @juliushaertl |
I restarted the action manually as it didn't seem to be working smoothly on self-hosted runners |
Reference for the failure https://github.com/nextcloud/server/actions/runs/7336566796/job/19976090810?pr=42457 |
Oooh, it fails if |
The backport to stable28 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable28
git pull origin stable28
# Create the new backport branch
git checkout -b fix/foo-stable28
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123
# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable28 Error: Unknown error More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
/backport 2c7f632 to stable28 |
This solution overrides browser default behavior. While it allows to open link on new tab, the link is still invalid:
For example, for a folder it says that it is a link to download a file via |
This line doesn't work, we cannot take data from another child through parent on initial render. There is no another child on this moment.
And anyway I don't think it is a good approach to transfer data by manually going through nodes... |
I'm not sure what URL I would expect...
|
Link should be the same as what it opens. If a link opens Here it also makes the link download link and the title says "Download". The source of the issue is that this line, that was supposed to find the default action, fails on initial rendering. There is the default action for a folder (open it), but this line on component creation doesn't work, because it tries to get data from another not mounted component, not from the state. |
Bring back opening files in a new tab by Ctrl-clicking on the file list entry. metaKey is needed for macOS support.