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>
This commit is contained in:
Marco Ambrosini 2023-11-22 15:38:48 +09:00 committed by nextcloud-command
parent 46b0e1bef1
commit fc3636792a
3 changed files with 8 additions and 4 deletions

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

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long