Merge pull request #22338 from nextcloud/backport/22322/stable18

[stable18] Only copy the link when updating a share or no password was forced
This commit is contained in:
Roeland Jago Douma 2020-08-21 10:30:47 +02:00 committed by GitHub
commit f80eaeec77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -681,7 +681,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