Skip to content

Commit de7b7d3

Browse files
committed
Fix inability to re-enter share password after invalid input
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent fc096ae commit de7b7d3

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

apps/files_sharing/src/components/SharingEntryLink.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,13 @@ export default {
608608
if (this.share && !this.share.id) {
609609
// if the share is valid, create it on the server
610610
if (this.checkShare(this.share)) {
611-
await this.pushNewLinkShare(this.share, true)
611+
try {
612+
await this.pushNewLinkShare(this.share, true)
613+
} catch (e) {
614+
this.pending = false
615+
console.error(e)
616+
return false
617+
}
612618
return true
613619
} else {
614620
this.open = true
@@ -720,6 +726,7 @@ export default {
720726
} else {
721727
this.onSyncError('pending', message)
722728
}
729+
throw data
723730
} finally {
724731
this.loading = false
725732
}

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)