Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRené Gieling <github@dartcafe.de>2021-05-28 19:24:04 +0300
committerGitHub <noreply@github.com>2021-05-28 19:24:04 +0300
commitd2b61b3d4ceb62f494db7d9c67aacb0d5a49c20d (patch)
tree8cc21aa3b866eb7ed59dad52615e2661673095ed /src
parent321f3cfb41a83f7cf86f46d3a0fe63be0cabe239 (diff)
parentfdd1a4cd670a3b2efb96030efc091340c91c80f6 (diff)
Merge pull request #1657 from nextcloud/enhancement/invitations
Add displayname to Invitation notice
Diffstat (limited to 'src')
-rw-r--r--src/js/components/Shares/SharesEffective.vue4
-rw-r--r--src/js/components/Shares/SharesUnsent.vue4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/js/components/Shares/SharesEffective.vue b/src/js/components/Shares/SharesEffective.vue
index 0281826d..aafee88d 100644
--- a/src/js/components/Shares/SharesEffective.vue
+++ b/src/js/components/Shares/SharesEffective.vue
@@ -82,13 +82,13 @@ export default {
const response = await this.$store.dispatch('shares/sendInvitation', { share })
if (response.data?.sentResult?.sentMails) {
response.data.sentResult.sentMails.forEach((item) => {
- showSuccess(t('polls', 'Invitation sent to {emailAddress}', { emailAddress: item }))
+ showSuccess(t('polls', 'Invitation sent to {displayName} ({emailAddress})', { emailAddress: item.emailAddress, displayName: item.displayName }))
})
}
if (response.data?.sentResult?.abortedMails) {
response.data.sentResult.abortedMails.forEach((item) => {
console.error('Mail could not be sent!', { recipient: item })
- showError(t('polls', 'Error sending invitation to {emailAddress}', { emailAddress: item }))
+ showError(t('polls', 'Error sending invitation to {displayName} ({emailAddress})', { emailAddress: item.emailAddress, displayName: item.displayName }))
})
}
},
diff --git a/src/js/components/Shares/SharesUnsent.vue b/src/js/components/Shares/SharesUnsent.vue
index 401acda1..2a827890 100644
--- a/src/js/components/Shares/SharesUnsent.vue
+++ b/src/js/components/Shares/SharesUnsent.vue
@@ -91,13 +91,13 @@ export default {
const response = await this.$store.dispatch('shares/sendInvitation', { share })
if (response.data?.sentResult?.sentMails) {
response.data.sentResult.sentMails.forEach((item) => {
- showSuccess(t('polls', 'Invitation sent to {emailAddress}', { emailAddress: item }))
+ showSuccess(t('polls', 'Invitation sent to {displayName} ({emailAddress})', { emailAddress: item.emailAddress, displayName: item.displayName }))
})
}
if (response.data?.sentResult?.abortedMails) {
response.data.sentResult.abortedMails.forEach((item) => {
console.error('Mail could not be sent!', { recipient: item })
- showError(t('polls', 'Error sending invitation to {emailAddress}', { emailAddress: item }))
+ showError(t('polls', 'Error sending invitation to {displayName} ({emailAddress})', { emailAddress: item.emailAddress, displayName: item.displayName }))
})
}
},