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 11 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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