summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-12-10 12:53:14 +0100
committernpmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>2020-12-10 15:15:20 +0000
commit0c7cc95b4ec3a7ceba3f5067bd03b0d87ecfd0cd (patch)
treef6d5da1871d59339c05a8e06140d25c7043e4eb6 /apps/files_sharing/src
parent27fdc6575d71a039db75164842263a1ed864ca47 (diff)
downloadnextcloud-server-0c7cc95b4ec3a7ceba3f5067bd03b0d87ecfd0cd.tar.gz
nextcloud-server-0c7cc95b4ec3a7ceba3f5067bd03b0d87ecfd0cd.zip
Show email address for shares that were created by other users
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index 9787319f5da..73b7ea073c3 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -410,6 +410,12 @@ export default {
// if we have a valid existing share (not pending)
if (this.share && this.share.id) {
if (!this.isShareOwner && this.share.ownerDisplayName) {
+ if (this.isEmailShareType) {
+ return t('files_sharing', '{shareWith} by {initiator}', {
+ shareWith: this.share.shareWith,
+ initiator: this.share.ownerDisplayName,
+ })
+ }
return t('files_sharing', 'Shared via link by {initiator}', {
initiator: this.share.ownerDisplayName,
})