Skip to content

Commit

Permalink
Merge pull request #18701 from nextcloud/fix/18632/show_info_when_no_…
Browse files Browse the repository at this point in the history
…others_with_access_found

Show message if no other users with access are found
  • Loading branch information
rullzer authored Jan 7, 2020
2 parents 55fd157 + 1fc3919 commit 33039a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/files_sharing/js/dist/files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files_sharing/js/dist/files_sharing_tab.js.map

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion apps/files_sharing/src/views/SharingInherited.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 33039a4

Please sign in to comment.