aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2023-01-11 09:26:29 +0100
committerGitHub <noreply@github.com>2023-01-11 09:26:29 +0100
commitafa2953e67c08e9e351246b4d7359ae186caf295 (patch)
treeca321058df0e271180b1f03dd7c0bcc90fb7efb7 /apps/files_sharing
parenta9f92b69d9e2de42817f35b29c5eca645ad243c2 (diff)
parentde7b7d3313913150364645d1ed51c569fb37d1da (diff)
downloadnextcloud-server-afa2953e67c08e9e351246b4d7359ae186caf295.tar.gz
nextcloud-server-afa2953e67c08e9e351246b4d7359ae186caf295.zip
Merge pull request #36074 from nextcloud/fix/share-password
Fix inability to re-enter share password after invalid input
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue9
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
}