diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-06 21:45:38 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-06 21:45:38 +0100 |
commit | 1fc39196bfc3fd6f43976ba25e91394dfa703ae8 (patch) | |
tree | e6302fd7b91bc9963818ff702aa2742fa1271e05 /apps/files_sharing/src | |
parent | 4c841559e16f7e5714e42f41ecd339fd6c135d7a (diff) | |
download | nextcloud-server-1fc39196bfc3fd6f43976ba25e91394dfa703ae8.tar.gz nextcloud-server-1fc39196bfc3fd6f43976ba25e91394dfa703ae8.zip |
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>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/views/SharingInherited.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_sharing/src/views/SharingInherited.vue b/apps/files_sharing/src/views/SharingInherited.vue index 64c0132e05e..5c466202606 100644 --- a/apps/files_sharing/src/views/SharingInherited.vue +++ b/apps/files_sharing/src/views/SharingInherited.vue @@ -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') |