diff options
author | Marco Ambrosini <marcoambrosini@icloud.com> | 2023-11-22 15:38:48 +0900 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2023-11-22 15:41:50 +0000 |
commit | fc3636792af8eff2561d6eb0729f782318f974aa (patch) | |
tree | 765362ccabf58b850877c5277a2736aab8a3a611 /apps | |
parent | 46b0e1bef1aba58915be990f2b188129853c577a (diff) | |
download | nextcloud-server-fc3636792af8eff2561d6eb0729f782318f974aa.tar.gz nextcloud-server-fc3636792af8eff2561d6eb0729f782318f974aa.zip |
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 <marcoambrosini@proton.me>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/components/FileEntry/FileEntryActions.vue | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ <NcLoadingIcon v-if="loading === action.id" :size="18" /> <NcIconSvgWrapper v-else :svg="action.iconSvgInline([source], currentView)" /> </template> - {{ actionDisplayName(action) }} + {{ mountType === 'shared' && action.id === 'sharing-status' ? '' : actionDisplayName(action) }} </NcActionButton> <!-- Submenu actions list--> @@ -253,6 +253,10 @@ export default Vue.extend({ getBoundariesElement() { return document.querySelector('.app-content > .files-list') }, + + mountType() { + return this.source._attributes['mount-type'] + }, }, methods: { |