aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/app.js
Commit message (Collapse)AuthorAgeFilesLines
* fix: drop legacy sharing filesJohn Molakvoæ2023-07-111-409/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(sharing): add sharing overview viewJohn Molakvoæ2023-07-111-12/+12
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Replace files app ids to classesVincent Petry2022-07-261-6/+6
| | | | | | | | | | | Replaced ids to classes for the following: - #filestable -> .files-filestable - #fileList -> .files-fileList - #controls -> .files-controls - #emptycontent -> .emptyfilelist.emptycontent Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix accept/reject remote share actionMSe19692022-04-121-3/+3
| | | | | | | This is the fix for the described problem in https://github.com/nextcloud/server/issues/31301 Signed-off-by: MSe1969 <mse1969@posteo.de>
* try to fix correct fileactions for sharing overviewszaimen2022-03-021-0/+1
| | | | | Signed-off-by: szaimen <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Revert OC.linkToOCS() calls back to old behaviourJoas Schilling2021-08-311-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix route path for pending remote sharesVincent Petry2021-07-271-1/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Disable default actions in pending file listVincent Petry2021-07-271-0/+2
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Pending remote group share fixesVincent Petry2021-07-271-1/+3
| | | | | | | | Only remove reject share for remote group shares Also fix share indicator to appear for remote group shares as well. Fix pending remote share icon to be the one of a share. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Remove "Reject share" for pending remote sharesVincent Petry2021-07-271-0/+6
| | | | | | | In the list of pending shares, the option for rejecting the share has been removed. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Extend pending shares list to include remote sharesVincent Petry2021-07-271-2/+11
| | | | | | | And adjust the accept/decline actions to use the right endpoint for remote shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Bump @nextcloud/router from 1.2.0 to 2.0.0dependabot[bot]2021-07-231-3/+3
| | | | | | | | | | Bumps [@nextcloud/router](https://github.com/nextcloud/nextcloud-router) from 1.2.0 to 2.0.0. - [Release notes](https://github.com/nextcloud/nextcloud-router/releases) - [Changelog](https://github.com/nextcloud/nextcloud-router/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-router/compare/v1.2.0...v2.0.0) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Use `babel-loader-exclude-node-modules-except`John Molakvoæ (skjnldsv)2020-07-311-1/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump compiled filesJohn Molakvoæ (skjnldsv)2020-07-311-21/+21
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use DOMContentLoaded and fix sharebymail loading issueJohn Molakvoæ (skjnldsv)2020-07-201-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix default action for deleted sharesGretaD2020-03-091-0/+1
| | | | | Signed-off-by: GretaD <gretadoci@gmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Add text restore after restore iconGretaD2020-02-121-1/+1
| | | | | Signed-off-by: GretaD <gretadoci@gmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Add pending share list to frontendJulius Härtl2020-01-071-0/+81
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump eslint-config-nextcloud from 0.0.6 to 0.1.0dependabot-preview[bot]2019-12-191-10/+10
| | | | | | | | | | Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0. - [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases) - [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0) Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Comply to eslintJohn Molakvoæ (skjnldsv)2019-10-011-105/+105
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix opening a section again in the Files appDaniel Calviño Sánchez2018-10-211-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a section is open in the Files app a "show" event is triggered. File list objects handle that event by reloading themselves, but only if the file list was shown at least once. However, the file list objects of plugins are created when the "show" event is triggered for the first time for their section; as the file list objects register their handler for the "show" event when they are created they never handle the first triggered "show" event, as the handler is set while that event is being already handled. Therefore, from the point of view of the handler, the second time that a "show" event was triggered it was seen as if the file list was shown for the first time, and thus it was not reloaded. Now the "shown" property is explicitly set for those file lists that are created while handling a "show" event, which causes them to be reloaded as expected when opening their section again. Note that it is not possible to just reload the file list whenever it is shown; the file list is reloaded also when the directory changes, and this can happen when the web page is initially loaded and the URL is parsed. In that case, if file lists were reloaded when shown for the first time then it could be reloaded twice, one with the default parameters due to the "show" event and another one with the proper parameters once the URL was parsed, and the files that appeard in the list would depend on which response from the server was received the last. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fixed scrolling containerJohn Molakvoæ (skjnldsv)2018-07-241-5/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Rename "Shares overview" to "Shares"Morris Jobke2018-07-161-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Tiny start of the share overviewRoeland Jago Douma2018-07-131-0/+36
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Disable sidebar on deleted shareJohn Molakvoæ (skjnldsv)2018-07-051-5/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Js magic for deleted sharesJohn Molakvoæ (skjnldsv)2018-07-051-0/+59
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix AdBlock blocking share icon, ref #866Jan-Christoph Borchardt2017-04-121-3/+2
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* filter hidden files on the web interfaceChristoph Wurst2016-04-191-3/+6
| | | | | | | | | | | | | | | | | | add checkbox to toggle show/hide hidden files persist show hidden setting fix settings menu layout test ApiController::showHiddenFiles don't show hidden files by default Store config in Backbone model and inject it into FileList Filter files only temporarily when rending the file list Fix file rename validation
* Properly join path sectionsVincent Petry2015-11-221-1/+1
| | | | | This prevents double slashes that can mess up path comparisons in some cases.
* improve empty states for sharing and shared links as wellJan-Christoph Borchardt2014-12-171-3/+7
|
* use empty state for 'Shared with you' as wellJan-Christoph Borchardt2014-12-171-1/+3
|
* Simple Plugin system for JavascriptVincent Petry2014-12-011-0/+3
|
* Improved Javascript docs for JSDocVincent Petry2014-10-311-0/+6
| | | | | | Added namespaces so that JSDoc can find them. Fixed a few warnings. Improved some comments.
* Propagate file action changes to the file listsVincent Petry2014-07-091-0/+40
| | | | | | | | | Whenever an app needs to register an event late, it does that on the original file actions object. Since the file actions that the file list work on is a merged list, not the original one, the registration event needs to be propagated there as well.
* Merge pull request #8861 from owncloud/share-overview-linklistVincent Petry2014-06-051-0/+31
|\ | | | | Added Shared with link sidebar section in files app
| * Fixed wording to "Shared by link"Vincent Petry2014-06-041-2/+2
| |
| * Added "Shared with link" sidebar section in files appVincent Petry2014-06-041-0/+31
| | | | | | | | | | | | | | Added section to only show link shares. Please note that the filtering is currently done on the client side which might not be the most efficient way of doing it.
* | Update share action text to display owner/recipientsVincent Petry2014-06-021-1/+3
|/ | | | | - when a share was changed, update the share action text - added file data attribute "data-share-recipients"
* Sharing overview fixes and unit testsVincent Petry2014-05-301-4/+25
| | | | | | | | | | | | - Fixed renaming and fileActionsReady event - Added unit tests for shares list - Fixed public page with defer - Fixed file actions in sharing overview - Fixed sharing counterpart list (10 entries max) - Fixed file path attribute to be used in download action - Fix sharing list headers - OC.Share icons now operate on fileList instance - Fix OC.Share.updateIcon when more than one list in DOM
* Distinguish legacy file actions from regular file actionsVincent Petry2014-05-301-8/+14
| | | | | | | | | | | | | | Legacy file actions are registered by legacy apps through window.FileActions.register(). These actions can only be used by the main file list ("all files") because legacy apps can only deal with a single list / container. New file actions of compatible apps must be registered through OCA.Files.fileActions. These will be used for other lists like the sharing overview. Fixed versions and sharing actions to use OCA.Files.fileActions, which makes them available in the sharing overview list.
* Small fixes to sharing overviewVincent Petry2014-05-301-0/+11
| | | | | | - Removed file size from file summary in sharing overview - Fixed document title - Fixed empty content text for shared overview
* Fixed file actions for sharing viewsVincent Petry2014-05-301-6/+13
| | | | | | | | FileActions can now be clone to be use for separate file list views without having the side-effect of affecting the main file list view. Added "Open" action in sharing overview file lists to redirect to the regular file list when clicking on a folder.
* Added sharing overview page (WIP)Vincent Petry2014-05-301-0/+61
- added sharing overview entries in the sidebar - use OCS Share API to get the list of files