Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-08-20 13:03:46 +0300
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2020-08-20 16:12:06 +0300
commit1da890150d11d892affdf6a1c250bfba1ef9945a (patch)
tree294c9e24b0e5003a2ce174a491e6ea26cb90346a /apps/files_sharing/src/components/SharingEntryLink.vue
parentaf3a59fab5798918697d25616ccdd929bc10a7fa (diff)
Only copy the link when updating a share or no password was forced
Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntryLink.vue')
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index e81482e43bd..3ba4e59867e 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -708,7 +708,11 @@ export default {
// Execute the copy link method
// freshly created share component
// ! somehow does not works on firefox !
- component.copyLink()
+ if (update || !this.config.enforcePasswordForPublicLink) {
+ // Only copy the link when the password was not forced,
+ // otherwise the user needs to copy/paste the password before finishing the share.
+ component.copyLink()
+ }
} catch ({ response }) {
const message = response.data.ocs.meta.message