Properly display share error messages

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-04-14 10:16:18 +02:00 committed by npmbuildbot[bot]
parent 09bb8ac6e2
commit 47146a1992
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
}