summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* fixes size of the download spinnerVincent Chan2016-05-301-2/+2
|
* Auto-add fileid in URL for currently displayed folderVincent Petry2016-05-061-1/+1
|
* Fix download spinner to work with CSS stylesVincent Petry2016-03-041-10/+9
| | | | | | A recent change replaced img elements with CSS icons for file actions. This fix adjusts the logic to work properly with CSS icons instead of images.
* Close classRoeland Jago Douma2016-02-251-1/+1
|
* Make file actions use icon CSS classesRoeland Jago Douma2016-02-251-15/+20
| | | | This makes theming of file actions possible
* Bring back file delete action text to be based on contextVincent Petry2015-12-111-3/+23
| | | | | | | | For received shares, the delete action becomes "Unshare" and for personal mounts it becomes "Disconnect storage". This also makes it possible from now on to pass a function to a file action's "displayName" attribute.
* Properly join path sectionsVincent Petry2015-11-221-4/+1
| | | | | This prevents double slashes that can mess up path comparisons in some cases.
* Make files app use Webdav for most operationsVincent Petry2015-11-221-1/+2
|
* Fix file action download spinnerVincent Petry2015-10-301-1/+1
|
* If an inline files action provides an alt text show itRoeland Jago Douma2015-10-031-1/+2
| | | | | * Added unit tests for icon display * Added unit tests for icon alt text display
* Fix order of actions in the files actions menuVincent Petry2015-09-281-0/+4
|
* Properly translate file actionsVincent Petry2015-09-221-0/+2
|
* Only show delete action in menu when delete permission existsVincent Petry2015-08-181-1/+1
| | | | | | This reverts an older decision where we said the delete action must always appear but be grayed out when the permission is missing. The actions menu obsoletes that.
* Merge pull request #18178 from owncloud/files-sidebar-actionsJan-Christoph Borchardt2015-08-131-7/+82
|\ | | | | Sidebar file actions
| * Make file actions work from sidebarVincent Petry2015-08-121-7/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | The favorite icon in the sidebar now triggers the file action and also updates itself according to the model's state when triggered from the file row. The thumbnail triggers the default action. Currently only one FileInfoModel is used for the selection and state synchronization between views. FileList reload now auto-closes the sidebar.
* | replace tipsys with tooltipsHendrik Leppelsack2015-08-121-0/+1
|/
* Fixed file actions menu to close when reclicking triggerVincent Petry2015-08-111-11/+21
| | | | | | FileActionsMenu is now a backbone view. The trigger and highlight handling is now done in the FileActions.showMenu() method using events.
* Inline actions using default renderer are now always permanentVincent Petry2015-08-101-0/+1
| | | | | | | | Default renderer like the favorite icon can decide whether to use the permanent class or not. Fixed sharing code to properly update the icon according to sharing state modifications.
* Updated unit tests for file actions and actions menuVincent Petry2015-08-101-5/+3
|
* Make file action menu icon permanentVincent Petry2015-08-101-3/+5
|
* Implement file actions dropdownVincent Petry2015-08-101-126/+176
| | | | | | File actions now have two types "inline" and "dropdown". The default is "dropdown". The file actions will now be shown in a dropdown menu.