Merge pull request #41656 from nextcloud/enh/41620/shared-label-takes-a-lot-of-space-in-files-list

Show shared label only if the current user have shared the file.
pull/41603/head
Andy Scherzinger 2023-11-22 17:19:14 +07:00 committed by GitHub
commit 0309faa60b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long