Fix inability to re-enter share password after invalid input

Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit de7b7d3313)
This commit is contained in:
Christopher Ng 2023-01-10 19:51:14 +00:00 committed by Vincent Petry
parent 4f6f5de106
commit 50867ff50a
No known key found for this signature in database
GPG key ID: E055D6A4D513575C
3 changed files with 11 additions and 4 deletions

View file

@ -651,7 +651,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
@ -762,6 +768,7 @@ export default {
} else {
this.onSyncError('pending', message)
}
throw data
} finally {
this.loading = false
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long