Skip to content

Commit

Permalink
Avoid creating two share links when password is enforced
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Feb 12, 2021
1 parent ad2033e commit 367b63d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/files_sharing/src/components/SharingEntryLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ export default {
data() {
return {
alreadyCreated: false,
copySuccess: true,
copied: false,
Expand Down Expand Up @@ -680,6 +682,11 @@ export default {
*/
async pushNewLinkShare(share, update) {
try {
if (this.alreadyCreated) {
return true
}
this.alreadyCreated = true
this.loading = true
this.errors = {}
Expand Down

0 comments on commit 367b63d

Please sign in to comment.