aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components/SharingEntryLink.vue
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Migrate nextcloud-vue usage to new import schemaFerdinand Thiessen2025-02-201-9/+9
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): Fix public share expiration being set when toggle is not ↵Christopher Ng2025-02-181-2/+7
| | | | | | enabled Signed-off-by: Christopher Ng <chrng8@gmail.com>
* test(files_sharing): Check that default expiration date is shown b4 create sharenfebe2025-02-061-0/+1
| | | | Signed-off-by: nfebe <fenn25.fn@gmail.com>
* fix: Show default expiration date before create link sharenfebe2025-02-061-4/+12
| | | | | | | | | Since `ShareEntryLink` component is used to both create and display/list the share links, we should only set default expiration date on `share.expireDate` when we know is a new share. Otherwise, we overidding data from the backend. Signed-off-by: nfebe <fenn25.fn@gmail.com>
* fix(files_sharing): Adjust wrong labeling identified by testnfebe2025-02-031-1/+1
| | | | Signed-off-by: nfebe <fenn25.fn@gmail.com>
* feat: Improve create link textsnfebe2025-01-231-2/+8
| | | | | | Use `Create public link` for first link share creation Signed-off-by: nfebe <fenn25.fn@gmail.com>
* fix(files_sharing): Stop overwriting the share expiration date with the ↵provokateurin2025-01-151-4/+1
| | | | | | default expiration date Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(files_sharing): also submit new share on password submitskjnldsv2024-12-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): Correct property enforced property namesnfebe2024-12-111-8/+7
| | | | Signed-off-by: nfebe <fenn25.fn@gmail.com>
* fix(files_sharing): Stop infinite loop blocking link share requestsnfebe2024-12-091-13/+22
| | | | | | | Fixes infinite loop preventing share link creation requests from being sent to the backend. Signed-off-by: nfebe <fenn25.fn@gmail.com>
* refactor: Use new `ShareType` across file_sharingnfebe2024-12-031-1/+1
| | | | Signed-off-by: nfebe <fenn25.fn@gmail.com>
* refactor(styles): Adjust code style in SCSS sources to match our stylelint ↵Ferdinand Thiessen2024-11-191-1/+1
| | | | | | config Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): share assignment issue in SharingEntryLinkskjnldsv2024-11-081-2/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(SharingEntryLink): Show default password before create if anyfenn-cs2024-11-081-9/+41
| | | | | | | | | | | | Prevent silent addition of expiration date to shares. Prevent silent addition for password to shares. Both now have a `shareRequiresReview` check Resolves : https://github.com/nextcloud/server/issues/48860 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(files): Link share URL was not generated due to typoFerdinand Thiessen2024-09-241-3/+4
| | | | | | `toen` vs `token` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: fix usage of deprecated functions and adjust code styleFerdinand Thiessen2024-09-201-9/+10
| | | | | | | | This solves 57 ESLint warnings by replacing deprecated code with `@nextcloud/` libraries, as well as adding missing type information, importing jQuery instead of relying on global one, and the same with Moment.js. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): add accessible labels in link share creationGrigorii K. Shartsev2024-09-091-17/+13
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files_sharing): checkbox for password in link share is not shownGrigorii K. Shartsev2024-09-091-0/+2
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix: Adjust more places for logical positionFerdinand Thiessen2024-08-291-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Add bidi support in core directoryMostafa Ahangarha2024-08-291-2/+2
| | | | Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
* chore(files_sharing): refactor Share model to tsskjnldsv2024-07-301-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): file request creation permissions and link copy displayskjnldsv2024-07-181-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): phpunit & openapi fixesskjnldsv2024-07-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): refactor sharing configskjnldsv2024-07-121-1/+15
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): allow mixed values in share attributes and allow ↵skjnldsv2024-07-121-1/+1
| | | | | | storing email arrays Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): add `new file request` optionskjnldsv2024-07-121-3/+3
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): rename `File drop` to `File requests`skjnldsv2024-07-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(SharingEntryLink): Show enforced password input labelfenn-cs2024-06-271-1/+3
| | | | | | | | | While upgrading icons in b3ec461fe86258a0a3831dff28e394018d0044c9 enforced password label icon was not correctly wrapped. Resolves : https://github.com/nextcloud/server/issues/45941 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(FilesView): Update files view upon share creation/deletefenn-cs2024-06-251-2/+6
| | | | | | Resolves : https://github.com/nextcloud/server/issues/44961 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* style: update copy icon to Material Design iconAndy Scherzinger2024-06-191-1/+1
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files_sharing): Improve recursion in `onNewLinShare`fenn-cs2024-06-121-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>
* chore: Add SPDX headerAndy Scherzinger2024-06-061-20/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat: Allow registration of advanced external share actionsChristopher Ng2024-03-061-2/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat: reconfigured NcActions to use MDI'sEduardo Morales2024-03-061-22/+51
| | | | 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>
* fix(files_sharing): lost styles for SharingEntryLinkGrigorii K. Shartsev2024-02-131-3/+3
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* Merge pull request #43213 from ↵Grigorii K. Shartsev2024-02-081-10/+4
| | | | | 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-081-4/+10
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* fix(sharing): migrate QuickShareSelect to NcActionsGrigorii K. Shartsev2024-02-081-10/+4
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files_sharing): Return focus to trigger element on sharing details closeChristopher Ng2024-01-261-1/+3
| | | | Signed-off-by: Christopher Ng <chrng8@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>
* 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-171-4/+2
| | | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> So-authored-by: Grigorii K. Shartsev <me@shgk.me>
* Reduce width of sharing entryjulia.kirschenheuter2023-10-191-2/+2
| | | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.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-141-42/+52
| | | | | | | | 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>
* Improve sharing flowfenn-cs2023-08-301-142/+36
| | | | | | | | | | | | | 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(files_sharing): String translationsChristopher Ng2023-07-311-2/+2
| | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* 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>