nextcloud/apps/files/tests/js
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
..
appSpec.js Remove deprecated legacy file actions 2019-10-14 19:19:16 +02:00
breadcrumbSpec.js Update comments in tests 2018-02-28 15:03:26 +01:00
detailsviewSpec.js Make possible to know the registered detail views in a details view 2017-06-09 03:14:23 +02:00
favoritesfilelistspec.js Use grid view in other file views too 2018-10-18 13:44:05 +02:00
favoritespluginspec.js Remove deprecated legacy file actions 2019-10-14 19:19:16 +02:00
fileUploadSpec.js Fix unit tests 2019-02-20 23:07:38 +01:00
fileactionsSpec.js Use grid view in other file views too 2018-10-18 13:44:05 +02:00
fileactionsmenuSpec.js Add link icon for public link too 2019-03-21 08:16:00 +01:00
filelistSpec.js Allow opening files for editing in new tabs 2020-04-09 16:41:09 +02:00
filesSpec.js Fix usage of deprecated OC.webroot 2018-10-09 13:53:59 +02:00
filesummarySpec.js Display number of hidden files in files summary (#25870) 2016-08-29 14:47:41 +02:00
mainfileinfodetailviewSpec.js Hide favourite icon in details view if favourite action is not available 2018-01-05 19:06:06 +01:00
newfilemenuSpec.js Fixed jsunit 2018-03-08 10:31:33 +01:00
tagspluginspec.js Remove "has-favorites" class from file list table 2017-10-19 01:46:13 +02:00