Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-01-06 23:45:38 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-01-06 23:45:38 +0300
commit1fc39196bfc3fd6f43976ba25e91394dfa703ae8 (patch)
treee6302fd7b91bc9963818ff702aa2742fa1271e05 /apps/files_sharing/src/views
parent4c841559e16f7e5714e42f41ecd339fd6c135d7a (diff)
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/views')
-rw-r--r--apps/files_sharing/src/views/SharingInherited.vue8
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')