Browse Source

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>
tags/v28.0.0rc1
Marco Ambrosini 6 months ago
parent
commit
fc3636792a

+ 5
- 1
apps/files/src/components/FileEntry/FileEntryActions.vue View File

@@ -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: {

+ 2
- 2
dist/files-main.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/files-main.js.map
File diff suppressed because it is too large
View File


Loading…
Cancel
Save