Show message if no other users with access are found

Fixes #18632
Show a small subtitle if no other users with access are found.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-01-06 21:45:38 +01:00
parent 4c841559e1
commit 1fc39196bf
No known key found for this signature in database
GPG Key ID: F941078878347C0C
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 -->
<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')