aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
Commit message (Collapse)AuthorAgeFilesLines
* fix: add missing subtitle on search for share recipientsLuka Trovic2024-08-061-6/+6
| | | | | Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* chore: Compile assetsFerdinand Thiessen2024-08-021-2/+10
| | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* test: Add test selector on sharing and versions componentsLouis Chemineau2024-08-022-8/+28
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* test: Add regression test for opening shared foldersFerdinand Thiessen2024-08-021-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): `open-in-files` should open a folder and not the parentFerdinand Thiessen2024-08-021-1/+3
| | | | | | For files this behavior is fine, but for folders the folder itself should be opened. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Close the sidebar on navigationFerdinand Thiessen2024-08-021-2/+6
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(sharing): Disable "Read permission" checkbox correctlyJoas Schilling2024-07-291-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(files_sharing): also allow removing READ permissions on email sharesskjnldsv2024-07-181-1/+4
| | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(SharingDetailsView): Prevent illegal unselection of read permissionsfenn-cs2024-07-091-0/+7
| | | | | | | | With the exception of "file drop" on link shares all other shares need the read permissions at least. Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* refactor(SharingDetailsView): Use NC loggerfenn-cs2024-07-081-4/+4
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(FilesView): Update files view upon share creation/deletefenn-cs2024-07-084-5/+52
| | | | | | Resolves : https://github.com/nextcloud/server/issues/44961 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* refactor(SharingInput): Remove unused addSharefenn-cs2024-07-032-81/+0
| | | | | | | | | | | | | | The new sharing flow since NC27 requires that users open the sharing details tab and customize their share before creating it. In https://github.com/nextcloud/server/pull/39472 the work of `addShare` was handed down to `openSharingDetails` that opens the sharing details tab for the user to customize and manually creat their share. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(ExternalSharing): Handle template share from external sourcesfenn-cs2024-07-032-5/+12
| | | | | | | The new sharing flow requires or implies that users should edit share before creating. External sources should not created the share IF we would upon sharing details tab on first request. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(sharingDetails): Show correct share targetfenn-cs2024-06-131-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): Add one string for every share type to not assume any ↵Ferdinand Thiessen2024-06-131-17/+17
| | | | | | language Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): Improve recursion in `onNewLinShare`fenn-cs2024-06-132-37/+80
| | | | | | | | | | | | | | | These changes fixes the issue of having the refresh the UI after share creation, as the share is not immediately removed from the UI list. Important changes - The basis of checking wether a password/expire date is no longer based on config values alone because the config is not expected in a share creation circle. Hence we check the configs and check if the share object (this.share) has the expected values set. This way, once the required properties are set, code control does not enter the block meant to handle the setting of required properties unneccessarily. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* refactor(ShareDetails): Prevent undefined errors for `share.permissions`fenn-cs2024-06-121-1/+2
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(files_sharing): dark avatar supportskjnldsv2024-06-121-1/+5
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): fix parsing of remote sharesskjnldsv2024-06-123-16/+53
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): `open-in-files` action should also set `openfile` queryFerdinand Thiessen2024-06-082-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): usage of NcTextField in SelectShareFolderDialogueLouis Chemineau2024-06-061-1/+1
| | | | | | | | The NcTextField needs a value property to be set. Signed-off-by: Louis Chemineau <louis@chmn.me> [skip ci]
* fix(deps): Update `@nextcloud/event-bus` to version 3.3.1Ferdinand Thiessen2024-05-313-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(share): Send correct share attributes upon share creationfenn-cs2024-04-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> Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* fix(share): Send empty expireDate when not expireDate setfenn-cs2024-04-161-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> [skip ci]
* 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(files_sharing): Create passwords when enforced for mail sharesFerdinand Thiessen2024-03-292-10/+7
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: List specific share permissions as sublinefenn-cs2024-03-181-3/+9
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Show quick permission subline on newlinefenn-cs2024-03-181-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>
* 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>
* Fix undefined share object during expirationDate updatefenn-cs2024-02-211-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>
* 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-131-7/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(sharing): migrate QuickShareSelect to NcActionsGrigorii K. Shartsev2024-02-083-200/+95
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files): add mount root property and adjust delete wordingJohn Molakvoæ2024-02-061-0/+5
| | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Use `@nextcloud/capabilities` to obtain share api defaultsfenn-cs2024-02-031-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-032-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-02-013-62/+91
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Merge pull request #42779 from nextcloud/backport/42126/stable28Arthur Schiwon2024-01-182-4/+3
|\ | | | | [stable28] Tooltip outside click, should abort share creation
| * Allow user to finish typing date before formattingfenn-cs2024-01-151-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-cs2024-01-151-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>
* | fix(files_sharing): fix sharing status indicator side after component updateJohn Molakvoæ2024-01-161-1/+3
|/ | | | | | Seems like the components now have max-height/width set too Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.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>
* Replace input filed with password field and added password error messagejulia.kirschenheuter2023-12-201-5/+11
| | | | | | | | | Remove unneeded NcDateTimePicker Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> (cherry picked from commit 696545b5300326e57bd24821cb2746aee30a992b) Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Remove `newPassword` from share model, if disabledfenn-cs2023-12-071-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-071-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>
* 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>