nextcloud/apps/files_trashbin/src
Azul 43f0d2a3b5 Allow opening files for editing in new tabs
In a file list files with a default action
have an href that will trigger the action.
This way ctrl-click and middle button click open the default action in a new tab.

In order to achieve this a new param `openfile` was introduced to the files app.
It will make the files app trigger the default action for the file in question.
This also allows linking to file content rather than just the details display.

Introduce fileList.getDefaultActionUrl()
to create a link with that param set.
It's overwritten in the trashbin fileList
so that anchors continue to have `#` as a href.

Fix the link generation for subfolders of public shares:
58a87d0 was the last commit that touched the linkTo function in public.js.
It included the params as arguments to the generateUrl function.
Turns out this completely ignores the dir parameter now.
The inclusion was reverted in other places
so revert it here as well.
Also change `dir` to `path` in the param as that is respected
when following the link.

Add Test for the new link url for files with default action.
Remove test for multiple selects with ctrl-click
as that is not what we are doing anymore.

Signed-off-by: Azul <azul@riseup.net>
2020-04-09 16:41:09 +02:00
..
app.js Bump eslint-config-nextcloud from 0.0.6 to 0.1.0 2019-12-19 11:55:33 +01:00
filelist.js Allow opening files for editing in new tabs 2020-04-09 16:41:09 +02:00
files_trashbin.js Move files_trashbin to webpack 2019-02-13 09:46:29 +01:00
trash.scss Move files_trashbin to webpack 2019-02-13 09:46:29 +01:00