diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-04-14 10:16:18 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-04-14 08:39:40 +0000 |
commit | 47146a199207a5bd9df7e77b7cf173f8bf26ba35 (patch) | |
tree | fcda166fb25cfe89ecf4d28c729143d1302364d3 /apps/files_sharing/src | |
parent | 09bb8ac6e269befda5833556d59d269699ca17b6 (diff) | |
download | nextcloud-server-47146a199207a5bd9df7e77b7cf173f8bf26ba35.tar.gz nextcloud-server-47146a199207a5bd9df7e77b7cf173f8bf26ba35.zip |
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>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/mixins/SharesMixin.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/src/mixins/SharesMixin.js b/apps/files_sharing/src/mixins/SharesMixin.js index 2622edaf5e2..912015af377 100644 --- a/apps/files_sharing/src/mixins/SharesMixin.js +++ b/apps/files_sharing/src/mixins/SharesMixin.js @@ -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 } |