Skip to content

Commit

Permalink
Merge pull request #22338 from nextcloud/backport/22322/stable18
Browse files Browse the repository at this point in the history
[stable18] Only copy the link when updating a share or no password was forced
  • Loading branch information
rullzer authored Aug 21, 2020
2 parents e1647c6 + 7fa81cb commit f80eaee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/files_sharing/js/dist/files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files_sharing/js/dist/files_sharing_tab.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion apps/files_sharing/src/components/SharingEntryLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f80eaee

Please sign in to comment.