Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
marcoambrosini authored and nextcloud-command committed Nov 22, 2023
commit fc3636792af8eff2561d6eb0729f782318f974aa
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
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.