Skip to content

Commit

Permalink
Show shared label only if the current user have shared the file.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
marcoambrosini authored and AndyScherzinger committed Nov 22, 2023
1 parent 46b0e1b commit 710d4a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/files/src/components/FileEntry/FileEntryActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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-->
Expand Down Expand Up @@ -253,6 +253,10 @@ export default Vue.extend({
getBoundariesElement() {
return document.querySelector('.app-content > .files-list')
},

mountType() {
return this.source._attributes['mount-type']
},
},

methods: {
Expand Down

0 comments on commit 710d4a2

Please sign in to comment.