From 0c7cc95b4ec3a7ceba3f5067bd03b0d87ecfd0cd Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Thu, 10 Dec 2020 12:53:14 +0100 Subject: Show email address for shares that were created by other users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl Signed-off-by: npmbuildbot-nextcloud[bot] --- apps/files_sharing/src/components/SharingEntryLink.vue | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/files_sharing/src') 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, }) -- cgit v1.2.3