mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
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:
parent
4f6f5de106
commit
50867ff50a
3 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue