summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
Commit message (Collapse)AuthorAgeFilesLines
* fix(sharingDetails): Show correct share targetfenn-cs2024-04-191-4/+14
| | | | | | | | | | The share details page should show the target email or user/server to which the user is creating the share. Signed-off-by: fenn-cs <fenn25.fn@gmail.com> [skip ci]
* fix(files_sharing): Create passwords when enforced for mail sharesFerdinand Thiessen2024-04-042-10/+7
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): Disable autocomplete for share label and passwordFerdinand Thiessen2024-04-021-3/+4
| | | | | | Prevent browsers - as good as possible - from filling in user credentials as share label and password. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(share): Send correct share attributes upon share creationfenn-cs2024-03-261-8/+8
| | | | | | | | | | - Send correct share attributes (`share.attributes`) to server upon creation. - Delete parts of code that create or reference, `share.hasDownloadPermission` (Not required by Share API) Resolves : https://github.com/nextcloud/server/issues/44131 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(share): Send empty expireDate when not expireDate setfenn-cs2024-03-261-4/+2
| | | | | | | | | | When creating a new share, if the user unchecks "Set expiry date" no `expireDate` is sent to the server. However, the server then assumes the default configured, hence better to send an empty value. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(tests): Add mock for `window._oc_webroot`Ferdinand Thiessen2024-03-234-0/+24
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: List specific share permissions as sublinefenn-cs2024-03-161-3/+9
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix: No password set for new mail sharesfenn-cs2024-03-141-1/+1
| | | | | | | | | | | | | | Before the password is set on a new share, the computed property `hasUnsavedPassword` is used to check that `this.share.newPassword` is not undefined. Direct assignment without using Vue's `this.$set` makes it impossible for vue to detect that changes have happened on the share object. Hence the inreactivity. This worked initially most likely because `this.share.newPassword = await GeneratePassword()` was executed before the computed properties where evaluated. Resolves : https://github.com/nextcloud/server/issues/43919 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* feat: Allow registration of advanced external share actionsChristopher Ng2024-03-063-3/+43
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat: reconfigured NcActions to use MDI'sEduardo Morales2024-03-062-24/+66
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* chore: manual lintingEduardo Morales2024-03-061-5/+11
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* feat: added new action for qrcode popup linkshareEduardo Morales2024-03-061-1/+44
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* feat: Rename circles to teamsJulius Härtl2024-03-061-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* test: Add test selector on sharing and versions componentsLouis Chemineau2024-02-272-8/+28
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(files_sharing): Remove legacy share permissions editorLouis Chemineau2024-02-271-290/+0
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(files_sharing): use `OCSResponse` from `@nextcloud/typings`skjnldsv2024-02-233-14/+5
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* 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>
* feat: rename users to account or personVincent Petry2024-02-133-4/+4
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* fix(files_sharing): lost styles for SharingEntryLinkGrigorii K. Shartsev2024-02-131-3/+3
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(sharing): Move video verification option to password and hide without TalkJoas Schilling2024-02-121-7/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #43213 from ↵Grigorii K. Shartsev2024-02-083-200/+95
| | | | | nextcloud/fix/43139/sharing--migrate-quick-share-select-to-nc-actions fix(sharing): migrate QuickShareSelect to NcActions
* Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-083-95/+200
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* fix(sharing): migrate QuickShareSelect to NcActionsGrigorii K. Shartsev2024-02-083-200/+95
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* feat(files): ask for confirm if deleting 5 items or moreJohn Molakvoæ2024-02-071-0/+75
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files): add mount root property and adjust delete wordingJohn Molakvoæ2024-02-061-0/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Show quick permission subline on newlinefenn-cs2024-02-041-3/+6
| | | | | | | - Show quick permission details/explanations on subline - Fix icon colors, should be white (or component set color) when highlighted. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Use `@nextcloud/capabilities` to obtain share api defaultsfenn-cs2024-02-011-12/+8
| | | | | | | - Remove redundant initial state added - Call `getCapabilities()` in share config file. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Consider admin defaults when creating sharesfenn-cs2024-02-012-12/+33
| | | | | | | | | | The current share logic always uses the default `BUNDLED_PERMISSIONS.ALL` which includes everything. This commit updates share creation logic to use `defaultPermissions` if set by admin for the creation of new shares. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(files_sharing): Return focus to trigger element on sharing details closeChristopher Ng2024-01-263-62/+91
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* sharing-entry__reshare needs ul or ol around itSimon L2024-01-111-7/+9
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* fix(files): group duplicate sharesJohn Molakvoæ2024-01-112-1/+44
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files_sharing): Add one string for every share type to not assume any ↵Ferdinand Thiessen2023-12-131-17/+17
| | | | | | language Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* 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>
* Tooltip outside click, should abort share creationfenn-cs2023-12-111-1/+1
| | | | | | | It's unexpected that click outside a tooltip would proceed with the action that could be carried out inside the tooltip. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Replace input filed with password field and added password error messagejulia.kirschenheuter2023-12-081-5/+11
| | | | | | Remove unneeded NcDateTimePicker Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Remove `newPassword` from share model, if disabledfenn-cs2023-12-061-3/+7
| | | | | | | | | | It's important to delete the `newPassword` prop from the share model, if the user unchecks the isPasswordProtected checkbox. This clearer and allows for the unchecking to actually work as `this.$set()` fails with the falsy value `''`. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Create element reference inside $nextTick()fenn-cs2023-12-061-7/+6
| | | | | | | | Accessing `this.$refs.shareList` outside $nextTick() could lead to the holder (`listComponent`) being undefined as the ref is yet to exist. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(files_sharing): fix sharing status indicator side after component updateJohn Molakvoæ2023-12-051-1/+3
| | | | | | Seems like the components now have max-height/width set too Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* Improve share logic for enforced password & expiry datefenn-cs2023-11-303-36/+35
| | | | | | | | | | | | | | * 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>
* Replace "Update" with "Edit"Jérôme Herbinet2023-11-231-2/+2
| | | Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
* fix: Avoid invisible areas through keyboard navigationJulius Härtl2023-11-171-0/+1
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Replace ActionLink with ActionButton on sharing tabjulia.kirschenheuter2023-11-172-11/+6
| | | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> So-authored-by: Grigorii K. Shartsev <me@shgk.me>
* fix(a11y): Focus on sharing quick permission radioChristopher Ng2023-11-161-1/+6
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Move delete share button into the scrolling containerjulia.kirschenheuter2023-11-151-13/+13
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Adapt "advanced settings" button for accordion buttonjulia.kirschenheuter2023-11-151-2/+12
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* fix: Change scroll container for sharing detailsJulius Härtl2023-11-132-173/+183
| | | | | | | | | | | | In order to meet accessibility requirements we cannot use a sticky footer that overlaps important interactable content. Therefore this moves to a scroll container for the details which does not include the action buttons at the bottom. Larger indentation change in SharingDetailsTab was required to have a wrapping container for the scroll area. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix description of sharing toggleSimon L2023-11-071-1/+1
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* fix(files_sharing): permissions translationGrigorii K. Shartsev2023-11-061-19/+16
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix: Share select search globally iconChristopher Ng2023-10-231-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@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>