summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
Commit message (Collapse)AuthorAgeFilesLines
* Only copy the link when updating a share or no password was forcedJoas Schilling2020-08-201-1/+5
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Display user-status in sharing listGeorg Ehrke2020-08-173-0/+20
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Use `babel-loader-exclude-node-modules-except`John Molakvoæ (skjnldsv)2020-07-314-12/+13
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump @nextcloud/eslint-config and peersJohn Molakvoæ (skjnldsv)2020-07-314-4/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump compiled filesJohn Molakvoæ (skjnldsv)2020-07-313-8/+8
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Respect default share permissionsRoeland Jago Douma2020-07-231-1/+1
| | | | | | Else we'll always create new shares with the max permissions. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use DOMContentLoaded and fix sharebymail loading issueJohn Molakvoæ (skjnldsv)2020-07-203-5/+10
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add user input for link share labelsGary Kim2020-07-143-5/+72
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Improve error reporting on sharing errorsJoas Schilling2020-07-081-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup share by mail a bitRoeland Jago Douma2020-07-061-2/+2
| | | | | | | | | | | | | | | | * Moved to ned IBootstrap * Register everything via the capabilities api (So clients can use it as well) - This applies to the enforcing passwords * Updated the sharing js code to use it * removed app.php * removed unused settings now * typehints * strict typing Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix share permission checkboxes enabled when permissions can not be setDaniel Calviño Sánchez2020-06-121-4/+52
| | | | | | | | | | | | | | A sharee can reshare a file and set the edit, create, delete and share permissions of the reshare only if the received share has edit, create, delete and share permissions, or if they were revoked in the received share after being set in the reshare. Therefore, the permission checkboxes in the share menu should be enabled only if the user can set them (otherwise trying to check them will lead to an error). Note that "sharePermissions" has all the permissions if the file is not a reshare but a file owned by the user. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Pass the proper share permissions to the create share callRoeland Jago Douma2020-06-091-0/+1
| | | | | | | | Fixes #21188 This way we do not run into the share permission issue Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Restore previous state when failing to change video verification stateDaniel Calviño Sánchez2020-06-011-0/+8
| | | | | | | | When video verification can not be enabled or disabled the previous state is set again in the JavaScript share object. This ensures that the UI will not reflect a misleading state. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix the Talk verificationChristoph Wurst2020-06-013-21/+48
| | | | | | | | | | | | | | | | | | When enabling or disabling Talk verification in mail shares the server expects also a new password to be set. As we always just update one property at a time this means the Talk verification was impossible to activate or deactivate. With this patch, we send the talk option AND the new password. If there is no new password, the Talk option is disabled (in mail shares; in link shares it is possible to enable or disable the video verification without changing the password). When we finally have descriptive text on ActionCheckbox'es we should definitely add some explanatory text for the user. Right now this is as good as it gets. We'll have to backport to 18. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove the escape-html globalRoeland Jago Douma2020-05-291-0/+2
| | | | | | | Already announced for 19 that it would go. So now it realy does go. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Do not process the same FileInfo twiceJohn Molakvoæ (skjnldsv)2020-05-061-3/+9
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Do not filter id matching userId on non-user-share sharesJohn Molakvoæ (skjnldsv)2020-05-051-0/+1
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix filtering our owner & current user from sharesJohn Molakvoæ (skjnldsv)2020-05-051-7/+9
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix federated link sharing permissionsJohn Molakvoæ (skjnldsv)2020-05-041-3/+12
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix expiry datepicker allowing all datesGary Kim2020-05-023-6/+14
| | | | | | | | | | vue2-datepicker expects a `disabled-date` function rather than `not-before` and `not-after` dates. This commit updates it so that we now provide vue2-datepicker with a `disabled-date` function. Signed-off-by: Gary Kim <gary@garykim.dev>
* Process shares only once, better debug and expiration date codeJohn Molakvoæ (skjnldsv)2020-05-013-14/+16
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix share expiration date not shownGary Kim2020-04-302-0/+3
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Allow to navigate to others with access from the sidebarRoeland Jago Douma2020-04-293-5/+31
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix Sharing recommendation user displayJohn Molakvoæ (skjnldsv)2020-04-211-1/+1
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Properly display share error messagesJohn Molakvoæ (skjnldsv)2020-04-141-2/+4
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Changing the translation catalog for "Share"Valdnet2020-04-121-1/+1
| | | | | | Change "files" to "files_sharing". Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Merge pull request #19763 from ↵Joas Schilling2020-03-061-1/+1
|\ | | | | | | | | nextcloud/bugfix/noid/received-share-sidebar-broken Fix "Error loading the shares list TypeError: "this is undefined"" fo…
| * Fix "Error loading the shares list TypeError: "this is undefined"" for ↵Joas Schilling2020-03-031-1/+1
| | | | | | | | | | | | conversation shares Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix regex to not take email uids as federated idsJulius Härtl2020-03-031-21/+20
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Show the link password when it's setChristoph Wurst2020-02-231-2/+3
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Add more tests for the new js modulesChristoph Wurst2020-02-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Give the sharing tab a unique id so it also opens properly on other languagesJulius Härtl2020-01-291-2/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Migrate to @nextcloud/vue 1.x.xJohn Molakvoæ (skjnldsv)2020-01-229-29/+30
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make auto accepting the default and provide setting to enforce the share ↵Julius Härtl2020-01-161-5/+3
| | | | | | acceptance process Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not save on update, use submitJohn Molakvoæ (skjnldsv)2020-01-163-10/+41
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Only allow navigation to a folder if you have accessRoeland Jago Douma2020-01-151-1/+1
| | | | | | | | | Fixes #18716 If you can delete the share then you have access yourself to that shares location. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add "Password protected by Talk" option to sharesDaniel Calviño Sánchez2020-01-142-0/+60
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add placeholderJohn Molakvoæ2020-01-101-0/+1
| | | | Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix sharing note placeholderJohn Molakvoæ (skjnldsv)2020-01-104-11/+21
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Only show others with access if you have reshare permissionsRoeland Jago Douma2020-01-071-1/+1
| | | | | | | | | Fixes #18711 If you do not have reshare permissions the others with access will throw an error anyways. So better to just not show it ;) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Show message if no other users with access are foundRoeland Jago Douma2020-01-061-1/+7
| | | | | | | Fixes #18632 Show a small subtitle if no other users with access are found. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't show link shares in sidebar if disabledRoeland Jago Douma2020-01-061-1/+7
| | | | | | Fixes #17799 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not show e-mail suggestions if link shares are disabledRoeland Jago Douma2020-01-062-1/+17
| | | | | | | | | For #17774 This removes the e-mail suggestions from the share input if link shares are disabled. As e-mail shares use just link shares. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix style of the sharing setting checkboxJulius Härtl2020-01-021-5/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Change icon-delete to icon-close in others locationsAlexandre Guiot--Valentin2019-12-262-2/+2
| | | | | Signed-off-by: Alexandre Guiot--Valentin <contact@alexandregv.fr> Signed-off-by: Gary Kim <gary@garykim.dev>
* Clarify "Delete share" action in sharing sidebarAlexandre GV2019-12-251-2/+2
| | | | | | | - change "Delete share" to "Unshare" - change icon-delete to icon-close Signed-off-by: Alexandre Guiot--Valentin <contact@alexandregv.fr>
* fix the folder shareGretaD2019-12-191-8/+20
| | | | | Signed-off-by: GretaD <gretadoci@gmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* add create and delete checkbox for sharesidebarGreta Doci2019-12-191-5/+48
| | | | Signed-off-by: Greta Doci <gretadoci@gmail.com>
* Bump eslint-config-nextcloud from 0.0.6 to 0.1.0dependabot-preview[bot]2019-12-1918-136/+136
| | | | | | | | | | 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>
* Wiswedel/inherited shares/design polishing (#18447)John Molakvoæ2019-12-192-6/+4
|\ | | | | Wiswedel/inherited shares/design polishing