From fc3636792af8eff2561d6eb0729f782318f974aa Mon Sep 17 00:00:00 2001 From: Marco Ambrosini Date: Wed, 22 Nov 2023 15:38:48 +0900 Subject: Show shared label only if the current user have shared the file. The presence of the text "Sharing label" in all shared files caused the view to be too loaded, so it's been decided to show it only when the current user is the owner of the share. Signed-off-by: Marco Ambrosini Signed-off-by: nextcloud-command --- apps/files/src/components/FileEntry/FileEntryActions.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/files/src') diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue index 3c94e00e609..d4693b7d8e6 100644 --- a/apps/files/src/components/FileEntry/FileEntryActions.vue +++ b/apps/files/src/components/FileEntry/FileEntryActions.vue @@ -58,7 +58,7 @@ - {{ actionDisplayName(action) }} + {{ mountType === 'shared' && action.id === 'sharing-status' ? '' : actionDisplayName(action) }} @@ -253,6 +253,10 @@ export default Vue.extend({ getBoundariesElement() { return document.querySelector('.app-content > .files-list') }, + + mountType() { + return this.source._attributes['mount-type'] + }, }, methods: { -- cgit v1.2.3