Merge pull request #18701 from nextcloud/fix/18632/show_info_when_no_others_with_access_found

Show message if no other users with access are found
This commit is contained in:
Roeland Jago Douma 2020-01-07 10:27:26 +01:00 committed by GitHub
commit 33039a4c97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

Binary file not shown.

View file

@ -25,7 +25,8 @@
<!-- Main collapsible entry -->
<SharingEntrySimple
class="sharing-entry__inherited"
:title="mainTitle">
:title="mainTitle"
:subtitle="subTitle">
<template #avatar>
<div class="avatar-shared icon-more-white" />
</template>
@ -88,6 +89,11 @@ export default {
mainTitle() {
return t('files_sharing', 'Others with access')
},
subTitle() {
return (this.showInheritedShares && this.shares.length === 0)
? t('files_sharing', 'No other users with access found')
: ''
},
toggleTooltip() {
return this.fileInfo.type === 'dir'
? t('files_sharing', 'Toggle list of others with access to this directory')