Skip to content

Commit

Permalink
fix(SharingEntry): Display owner name if the owner is someone else
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Nov 14, 2024
1 parent 23850f6 commit cd4dc54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/files_sharing/src/components/SharingEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ export default {
} else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_GUEST) {
title += ` (${t('files_sharing', 'guest')})`
}
if (!this.isShareOwner && this.share.ownerDisplayName) {
title += t('files_sharing', ' by {initiator}', {
initiator: this.share.ownerDisplayName,
})
}
return title
},
tooltip() {
Expand Down

0 comments on commit cd4dc54

Please sign in to comment.