Merge pull request #20469 from nextcloud/fix/sidebar/sharing/password-error-message

Properly display share error messages
This commit is contained in:
John Molakvoæ 2020-04-14 11:25:50 +02:00 committed by GitHub
commit e4d378d01e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -246,8 +246,10 @@ export default {
// reset password state after sync
this.$delete(this.share, 'newPassword')
} catch ({ property, message }) {
} catch ({ message }) {
if (message && message !== '') {
this.onSyncError(property, message)
}
} finally {
this.saving = false
}