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:
parent
4c841559e1
commit
1fc39196bf
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue