diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-01-10 19:51:14 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-01-10 19:51:14 +0000 |
commit | de7b7d3313913150364645d1ed51c569fb37d1da (patch) | |
tree | bb7b6f740e2bbe77cfd7d9f5a745a3f3916faa73 /apps/files_sharing/src/components | |
parent | fc096ae9db18e3d62ad616588462edccd2d82f26 (diff) | |
download | nextcloud-server-de7b7d3313913150364645d1ed51c569fb37d1da.tar.gz nextcloud-server-de7b7d3313913150364645d1ed51c569fb37d1da.zip |
Fix inability to re-enter share password after invalid input
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_sharing/src/components')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryLink.vue | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index 1d9e2b6e211..f75a5647df6 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -608,7 +608,13 @@ export default { if (this.share && !this.share.id) { // if the share is valid, create it on the server if (this.checkShare(this.share)) { - await this.pushNewLinkShare(this.share, true) + try { + await this.pushNewLinkShare(this.share, true) + } catch (e) { + this.pending = false + console.error(e) + return false + } return true } else { this.open = true @@ -720,6 +726,7 @@ export default { } else { this.onSyncError('pending', message) } + throw data } finally { this.loading = false } |