aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
Commit message (Collapse)AuthorAgeFilesLines
* chore(files): Remove legacy UI scripts now that everything is migrated to VueFerdinand Thiessen2024-09-201-915/+0
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): do not show legacy `edit locally` action on public pagesskjnldsv2024-07-311-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-291-8/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Hide set reminder action on public sharesChristopher Ng2023-09-071-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* enh: use alarm iconChristopher Ng2023-08-091-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files_reminders): register file actionChristopher Ng2023-08-091-0/+16
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Only render the menu if there are actions to showJulius Härtl2023-06-291-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Replace custom tooltips with native ones in filesjulia.kirschenheuter2022-12-221-1/+1
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* do not show editlocally on mobileszaimen2022-10-111-23/+25
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Use computer icon for edit locally file actionChristopher Ng2022-09-211-2/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add edit locally file actionChristopher Ng2022-09-201-0/+24
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Remove copy in file actions when not allowedVincent Petry2022-08-261-1/+8
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add ```aria-expanded``` value to select2-container om systemtag and file tagsjulia.kirschenheuter2022-08-171-0/+3
| | | | | | | | | | | | Add ```aria-expanded``` to color picker Add ```aria-expanded``` to UnifiedSearch.vue Add ```aria-expanded``` to new button on files Add ```aria-expanded``` to action menu Add ```aria-expanded``` to icon .federation-menu Add ```aria-expanded``` to app navigation collapse button Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Explicitly close div elementLouis Chemineau2022-04-041-1/+1
| | | | | | Fix: #30002 Signed-off-by: Louis Chemineau <louis@chmn.me> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Typing correctionsLouis Chemineau2022-01-111-5/+5
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* adding action.filename to FileActionsMaxence Lange2021-10-081-12/+32
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Remove "Reject share" for pending remote sharesVincent Petry2021-07-271-0/+8
| | | | | | | In the list of pending shares, the option for rejecting the share has been removed. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Trigger click event when scrollTo is setLouis Chemineau2021-06-091-2/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Clarify wording to 'Leave this share', fix #18622Jan C. Borchardt2020-08-231-1/+1
| | | | Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
* Allow opening files for editing in new tabsAzul2020-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* refactor: fileActions.getCurrentDefaultFileAction()Azul2020-04-081-1/+14
| | | | | | | | | | fileActions.getCurrentDefaultFileAction() returns the default file action for the currently selected file. There were a number of places querying for the mime, type and permissions of that file first to then query for the default action. Signed-off-by: Azul <azul@riseup.net>
* Use function to open a sidebar fileJohn Molakvoæ (skjnldsv)2019-11-131-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add OCA.Files.SidebarJohn Molakvoæ (skjnldsv)2019-10-291-0/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove deprecated legacy file actionsJulius Härtl2019-10-141-26/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Rename delete label to Delete folder/fileJohn Molakvoæ (skjnldsv)2019-08-141-1/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use slient option to switch for regular file actions as wellJulius Härtl2019-04-111-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Check if OCA.Files.App is available before callingJulius Härtl2019-04-081-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix opening folders from different file listsJulius Härtl2019-03-271-1/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use the new method instead of the deprecated wrapperJoas Schilling2019-02-061-4/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix testing for undefinedFlorian Schunk2019-01-161-1/+1
| | | | Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
* remember last copied to directoryFlorian Schunk2019-01-161-1/+6
| | | | Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
* copy Dialog starts in current directoryFlorian Schunk2019-01-161-1/+1
| | | | Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
* Fix whitespace and file action cleanupJulius Härtl2018-11-201-11/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow to hide download option for folders shared by linkJulius Härtl2018-11-201-9/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move fileactions to compiled handlebarsRoeland Jago Douma2018-10-041-16/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Refine wording from 'Target folder' to 'Choose target folder'Jan-Christoph Borchardt2018-10-011-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Object.values polyfillJohn Molakvoæ (skjnldsv)2018-08-161-0/+14
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Do not show action menu if no actions are availableJohn Molakvoæ (skjnldsv)2018-08-151-1/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Added a new action menu in files and trash list.Abijeet2018-06-181-6/+6
| | | | | | | | Uses the new file-multi-select-menu component. Towards #7647 Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Fixed files copy/move when in favorites or recent sectionJohn Molakvoæ (skjnldsv)2018-03-221-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Split move and copy operationsRoland Tapken2018-02-151-3/+14
| | | | | | | | | | | | | | | The new 'Move and copy' operation from #6040 requires UPDATE permissions on the selected files. However, READ would be sufficient to create a copy of a file (if not viewed as a public share). For this reason this patch: - changes the permission of the 'MoveCopy' action to PERMISSION_READ - changes the label of the action depending on the permissions - changes the available buttons in the Move/Copy dialog depending on the permissions. The same changes are done to the filelist view for bulk actions. Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
* Remove internal unused propertyDaniel Calviño Sánchez2017-12-211-9/+0
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Trigger events before and after a file action is executedDaniel Calviño Sánchez2017-12-191-1/+16
| | | | | | | | | | | | | | In the same way that other elements can know when a FileAction is registered or a default action is set this commit makes possible to be notified before and after a FileAction is executed. This is achieved by wrapping the registered action handler in a custom function that notifies the listeners before and after executing the handler itself. Due to this approach only FileActions registered through "registerAction" trigger the events, although that is not a problem as this is how the actions should be added to the FileActions anyway. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add proper handling of files without permissionsDaniel Calviño Sánchez2017-11-021-1/+1
| | | | | | | | | | | Now a file gets its directory permissions only if it contained no permissions (they were undefined or null), but not if its permissions were set to "NONE". Besides that, now file actions that do not require any permission on the file to be performed can be used on files that have no permissions. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add support to FileActionsMenu for icon class functionsDaniel Calviño Sánchez2017-10-191-1/+12
| | | | | | | | | | | | Icon class function properties make possible to render a different icon class depending on the context of the file action. Inline file actions had support for them already and called them passing the file name and context of the file action as parameters. Due to this the FileActionsMenu passes those parameters too to icon class functions instead of just the context like done for display name functions. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Change move copy order and debug leftoverThomas Citharel2017-09-151-2/+2
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* [WIP] Added copy and move buttonsThomas Citharel2017-09-151-19/+10
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Allow files to be copied through action menu & multiple files actionsThomas Citharel2017-09-151-0/+14
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* use more fitting icon for files move actionJan-Christoph Borchardt2016-10-171-4/+3
|
* Add file action to move files and foldersRobin Appelman2016-10-141-0/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>