Merge pull request #18701 from nextcloud/fix/18632/show_info_when_no_others_with_access_found
Show message if no other users with access are found
This commit is contained in:
commit
33039a4c97
3 changed files with 7 additions and 1 deletions
BIN
apps/files_sharing/js/dist/files_sharing_tab.js
vendored
BIN
apps/files_sharing/js/dist/files_sharing_tab.js
vendored
Binary file not shown.
BIN
apps/files_sharing/js/dist/files_sharing_tab.js.map
vendored
BIN
apps/files_sharing/js/dist/files_sharing_tab.js.map
vendored
Binary file not shown.
|
@ -25,7 +25,8 @@
|
||||||
<!-- Main collapsible entry -->
|
<!-- Main collapsible entry -->
|
||||||
<SharingEntrySimple
|
<SharingEntrySimple
|
||||||
class="sharing-entry__inherited"
|
class="sharing-entry__inherited"
|
||||||
:title="mainTitle">
|
:title="mainTitle"
|
||||||
|
:subtitle="subTitle">
|
||||||
<template #avatar>
|
<template #avatar>
|
||||||
<div class="avatar-shared icon-more-white" />
|
<div class="avatar-shared icon-more-white" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -88,6 +89,11 @@ export default {
|
||||||
mainTitle() {
|
mainTitle() {
|
||||||
return t('files_sharing', 'Others with access')
|
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() {
|
toggleTooltip() {
|
||||||
return this.fileInfo.type === 'dir'
|
return this.fileInfo.type === 'dir'
|
||||||
? t('files_sharing', 'Toggle list of others with access to this directory')
|
? t('files_sharing', 'Toggle list of others with access to this directory')
|
||||||
|
|
Loading…
Reference in a new issue