aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components
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>
* test: Add test selector on sharing and versions componentsLouis Chemineau2024-08-021-0/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(FilesView): Update files view upon share creation/deletefenn-cs2024-07-081-0/+4
| | | | | | Resolves : https://github.com/nextcloud/server/issues/44961 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* refactor(SharingInput): Remove unused addSharefenn-cs2024-07-031-75/+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(files_sharing): Improve recursion in `onNewLinShare`fenn-cs2024-06-131-37/+79
| | | | | | | | | | | | | | | 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>
* 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(files_sharing): lost styles for SharingEntryLinkGrigorii K. Shartsev2024-02-131-3/+3
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(sharing): migrate QuickShareSelect to NcActionsGrigorii K. Shartsev2024-02-083-200/+95
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files_sharing): Return focus to trigger element on sharing details closeChristopher Ng2024-02-012-2/+9
| | | | Signed-off-by: Christopher Ng <chrng8@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>
* Improve share logic for enforced password & expiry datefenn-cs2023-11-301-8/+2
| | | | | | | | | | | | | | * 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 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: Share select search globally iconChristopher Ng2023-10-231-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* refactor: remove remaining usage of OC::getCapabilitiesVarun Patil2023-10-201-3/+4
| | | | Signed-off-by: Varun Patil <varunpatil@ucla.edu>
* Reduce width of sharing entryjulia.kirschenheuter2023-10-192-4/+4
| | | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Updates to sharing flowfenn-cs2023-10-021-2/+3
| | | | | | | | | | | | | | - Show enforced expiry date for new shares. - Improve quick share dropdown visibility in dark mode. - Prevent expiry date from showing expire for incoming shares. by updating the check for `share.passwordExpirationTime` to equally check for `undefined`. - Move "Download permission/attribute" from custom setting (as it is just another advanced setting and not an actual permission). - Show correct text for upload/editing when "allow public uploads" is enabled or disabled by admin. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Consider share type for enforced share expiry datesfenn-cs2023-09-201-23/+1
| | | | | | | | | | | | | | | | | | | | | 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>
* Properly align all sharing-entry typesfenn-cs2023-09-144-47/+56
| | | | | | | | SharingEntryLink and regular ShareEntry were not properly visually aligned before this commit. Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Ellipsize user status in sharing entryfenn-cs2023-09-131-28/+25
| | | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Display user status by the side in sharing flowfenn-cs2023-09-131-6/+10
| | | | | | | | | | | The quick share drop down now takes the place where the user status would show in the past, so we have the option of removing it (as it's available in the profile dropdown) or putting it at the side as such. It's put on the side without the icon, as the status icon appears on the avatar when set. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Enfore allowPublicShares admin settingfenn-cs2023-09-121-1/+1
| | | | | | | Use the the modern intial-state library to pass data about `allowPublicUploads` to the sharing frontend. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Add accesibility features to quick share dropdownfenn-cs2023-09-071-16/+98
| | | | | | | | | - Adds appropriate aria attributes - Uses button element for dropdown items as it's more semantically correct - Uses trap-focus lib to trap focus when the drowpdown is active - Adds custom handling for arrow up and down Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Close quickshare dropdown on outside clickfenn-cs2023-09-071-1/+13
| | | | | | | If a user clicks anywhere outside of the quickshare dropdown, it should be closed. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(files_sharing): select sharing in sidebar breaks Viewer focus trapGrigorii K. Shartsev2023-09-051-7/+0
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* Replace custom input field with NcTextFieldjulia.kirschenheuter2023-08-311-5/+8
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Improve sharing flowfenn-cs2023-08-305-502/+283
| | | | | | | | | | | | | 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>
* fix(apps): Adjust apps for FilePicker API changeFerdinand Thiessen2023-08-261-1/+0
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): String translationsChristopher Ng2023-07-312-3/+3
| | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(files_sharing): hide download permission for circle sharesRichard Steinmetz2023-07-101-0/+6
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* chore: upgrade typescript, eslint and fix lintJohn Molakvoæ2023-06-271-1/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Don't disable actions when saving share permissionsLouis Chemineau2023-06-191-8/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Show pending popover menu when password is enabled by defaultDaniel Calviño Sánchez2023-05-221-8/+8
| | | | | | | | | | | | | | | | When "Enforce password protection" is enabled in the sharing settings a popover menu is shown to set a password before the share is created. On the other hand, when "Always ask for a password" was enabled in the sharing settings and a new link share was created the share was immediately created with a default password; the user was not able to specify a password (nor create the share without password). The component template already provided the needed elements to also ask for the password without enforcing it, but the popover menu was not shown due to "enableLinkPasswordByDefault" being missing in "if" conditions. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Rename "pendingPassword" to "pendingEnforcedPassword"Daniel Calviño Sánchez2023-05-221-4/+4
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use the color-primary-element* variablesSimon L2023-05-131-1/+1
| | | | | Signed-off-by: Simon L <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Do not allow to toggle between password and text in sharingLouis Chemineau2023-05-091-0/+1
| | | | | | This does not makes sense as we do not have the clear text value. Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix share input idChristopher Ng2023-05-021-1/+1
| | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* fix(l10n): Fixed grammarrakekniven2023-04-181-1/+1
| | | | | | | Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* chore(eslint): fix missing import extensionsJohn Molakvoæ2023-03-239-39/+39
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-0/+6
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Fix share select dropdown not opening when viewer is openChristopher Ng2023-03-011-0/+7
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Adapt native tooltip for new structure of NcAvatarjulia.kirschenheuter2023-02-272-3/+2
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Drop vue-clipboard2 to fix copy to clipboardChristopher Ng2023-02-012-2/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Port files sharing selectorChristopher Ng2023-01-241-56/+61
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add visible share labelChristopher Ng2023-01-121-4/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Differentiate share linksChristopher Ng2023-01-121-1/+19
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix inability to re-enter share password after invalid inputChristopher Ng2023-01-101-1/+8
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Replace custom tooltips with native one in vue components and viewsjulia.kirschenheuter2023-01-055-75/+27
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Revert "Copy to clipboard with button instead of link"Christopher Ng2022-12-142-39/+25
| | | | | | This reverts commit 4ffc022c8b5d2a4df3b1b1452de769c4ad27fe4f. Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add success popup message for copying share linksChristopher Ng2022-12-062-6/+11
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Show success on share actionsChristopher Ng2022-12-031-1/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>