aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/mixins/SharesMixin.js
Commit message (Collapse)AuthorAgeFilesLines
* chore(files_sharing): refactor Share model to tsskjnldsv2024-07-301-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): refactor sharing configskjnldsv2024-07-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(FilesView): Update files view upon share creation/deletefenn-cs2024-06-251-1/+23
| | | | | | Resolves : https://github.com/nextcloud/server/issues/44961 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-06-061-24/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Fix undefined share object during expirationDate updatefenn-cs2024-02-201-1/+1
| | | | | | | | | | In 04e87337211351127cd02a0404936de8cb1b0837 a regression was introduced. `this` means nothing inside arrow functions, hence this.share was referring to an undefined object and so all attempted updates for expiration dates would fail. Resolves : https://github.com/nextcloud/server/issues/43256 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Allow user to finish typing date before formattingfenn-cs2023-12-111-3/+2
| | | | | | | Debounce `onExpirationChange` to avoid calling `formatDateToString` on invalid on uncompletely inputed date strings. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Improve share logic for enforced password & expiry datefenn-cs2023-11-301-0/+16
| | | | | | | | | | | | | | * It's possible for the admin to enforce and expiry date after, some shares have been created. This commit makes possible to update the share with the new admin constraints. * This commit would users to modify enforced expiry to anything within range and less than the enforced limit in the pre-create dialog for public shares. * This commit fixes, unable to update share without updating password. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Do not treat `isDefaultExpireDateEnforced` as fallbackfenn-cs2023-10-221-2/+2
| | | | | | | | | | | | | | | | `isDefaultExpireDateEnforced` and its corresponding `defaultExpirationDate` is currently treated as the enforcement fallback when share type enforcements are not set. However, `isDefaultExpireDateEnforced` and `defaultExpirationDate` are actually more like `isDefaultPublicExpireDateEnforced` and `defaultPublicExpirationDate` and therefore only applies to public shares. It might be ideal to rename this variables all the way from the backend config to the way we use them in the frontend code. Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Consider share type for enforced share expiry datesfenn-cs2023-09-201-0/+9
| | | | | | | | | | | | | | | | | | | | | We have three kind of share expiry date enforcements. - `isDefaultExpireDateEnforced` - `isDefaultInternalExpireDateEnforced` - `isDefaultRemoteExpireDateEnforced` Before these commit, `isExpiryDateEnforced` that is used to disable/enable the set expiry date checkbox does not take those into consideration which is problematic as those have different applications. In addition, this commit now uses `isExpiryDateEnforced` to disable/enable the input for expiry date that shows up before the creation of link shares. Here, `hasExpirationDate` is also removed from 'SharingEntryLink` component as it is not used. Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Improve sharing flowfenn-cs2023-08-301-7/+21
| | | | | | | | | | | | | This commit introduces the following changes: - Does not create new share once user is selected for internal shares - Adds a `SharingDetails` view for share configurations - Adds a quick share select to enable fast changes in share permisions. Resolves: https://github.com/nextcloud/server/issues/26691 Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(eslint): replace node/no-missing-import by n/no-missing-importJohn Molakvoæ2023-03-231-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Replace custom tooltips with native one in vue components and viewsjulia.kirschenheuter2023-01-051-3/+3
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Show success on share actionsChristopher Ng2022-12-031-0/+6
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix date handling and savingJohn Molakvoæ2022-11-161-8/+33
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Replace moment.js date with Date Object.julia.kirschenheuter2022-10-061-21/+5
| | | | | | | Replace vue2-datepicker with native date picker for expiration date. Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Add share attrs + download permission support in frontendVincent Petry2022-07-281-1/+7
| | | | | | | Added download permission checkbox in frontend Added share attributes parsing and setting in frontend. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Various improvements related to the recent implementation of temporary passwordsCyrille Bollu2022-06-081-1/+4
| | | | | | | | | | | | | | | for mail shares: 1- Changes style of "forgot password?" and "Back" button 2- Adds information about share password's expiration time in the emails sent. 3- Shows password expiration time in the Share menu 4- Fixes an issue when the message "Password expires..." would be shown for non email share types (which don't have temporary passswords) 5- At share's creation, password should only be sent when it's a permanent one See also https://github.com/nextcloud/server/issues/31952 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Use @nextcloud/sharing in files and files_sharingLouis Chemineau2022-01-261-12/+0
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> Update tests Signed-off-by: Louis Chemineau <louis@chmn.me>
* Replace license information to SPDX expressionLouis Chemineau2022-01-111-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Typing correctionsLouis Chemineau2022-01-111-3/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Bump p-queueLouis Chemineau2022-01-081-1/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Migrate to webpack v5Louis Chemineau2022-01-081-5/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix first day localeJohn Molakvoæ2021-12-091-17/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Properly format sharing datepicker localeJohn Molakvoæ2021-12-091-8/+15
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Bump p-queueJohn Molakvoæ (skjnldsv)2021-07-261-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-311-0/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Only clear share password model when actually savedVincent Petry2021-03-111-2/+5
| | | | | | | | | | | Instead of always clearing the password in the share model, now only do it when it was actually saved. Fixes an issue where saving another field would clear the password too early and prevent it to be saved when the dropdown closed. Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Show unique displayname context in the user share list entriesJulius Härtl2020-12-141-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Bump compiled filesJohn Molakvoæ (skjnldsv)2020-07-311-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add user input for link share labelsGary Kim2020-07-141-0/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* 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-011-9/+12
| | | | | | | | | | | | | | | | | | 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>
* Fix expiry datepicker allowing all datesGary Kim2020-05-021-0/+11
| | | | | | | | | | 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-011-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>
* Do not save on update, use submitJohn Molakvoæ (skjnldsv)2020-01-161-4/+15
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix sharing note placeholderJohn Molakvoæ (skjnldsv)2020-01-101-5/+15
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump eslint-config-nextcloud from 0.0.6 to 0.1.0dependabot-preview[bot]2019-12-191-12/+12
| | | | | | | | | | 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>
* Add settings front and split sharing entry configJohn Molakvoæ (skjnldsv)2019-11-271-22/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add OCA.Files.SidebarJohn Molakvoæ (skjnldsv)2019-10-291-0/+303
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>