Merge pull request #20471 from nextcloud/backport/20469/stable18

[stable18] Properly display share error messages
This commit is contained in:
Roeland Jago Douma 2020-04-14 20:56:12 +02:00 committed by GitHub
commit 4742458c2f
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 }) {
this.onSyncError(property, message)
} catch ({ message }) {
if (message && message !== '') {
this.onSyncError(property, message)
}
} finally {
this.saving = false
}