From d466a7b80834b6e31bfcb9d764816a01da0cbc7c Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 1 Apr 2020 15:07:35 +0200 Subject: Allow to navigate to others with access from the sidebar Signed-off-by: Roeland Jago Douma Signed-off-by: npmbuildbot[bot] --- .../src/components/SharingEntryInherited.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'apps/files_sharing/src/components/SharingEntryInherited.vue') diff --git a/apps/files_sharing/src/components/SharingEntryInherited.vue b/apps/files_sharing/src/components/SharingEntryInherited.vue index 259599359d4..b8b5674efc9 100644 --- a/apps/files_sharing/src/components/SharingEntryInherited.vue +++ b/apps/files_sharing/src/components/SharingEntryInherited.vue @@ -35,10 +35,10 @@ {{ t('files_sharing', 'Added by {initiator}', { initiator: share.ownerDisplayName }) }} - - {{ t('files_sharing', 'Via folder') }} + :href="viaFileTargetUrl"> + {{ t('files_sharing', 'Via “{folder}”', {folder: viaFolderName} ) }} import { generateUrl } from '@nextcloud/router' +import { basename } from '@nextcloud/paths' import Avatar from '@nextcloud/vue/dist/Components/Avatar' import ActionButton from '@nextcloud/vue/dist/Components/ActionButton' import ActionLink from '@nextcloud/vue/dist/Components/ActionLink' @@ -81,11 +82,15 @@ export default { }, computed: { - fileTargetUrl() { + viaFileTargetUrl() { return generateUrl('/f/{fileid}', { - fileid: this.share.fileSource, + fileid: this.share.viaFileid, }) }, + + viaFolderName() { + return basename(this.share.viaPath) + }, }, } -- cgit v1.2.3