Merge pull request #18672 from nextcloud/fix/17799/if_disabled_dont_show_link_shares
Don't show link shares in sidebar if disabled
This commit is contained in:
commit
ad699682cb
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -21,7 +21,7 @@
|
|||
-->
|
||||
|
||||
<template>
|
||||
<ul class="sharing-link-list">
|
||||
<ul class="sharing-link-list" v-if="canLinkShare">
|
||||
<!-- If no link shares, show the add link default entry -->
|
||||
<SharingEntryLink v-if="!hasLinkShares && canReshare"
|
||||
:can-reshare="canReshare"
|
||||
|
@ -75,6 +75,12 @@ export default {
|
|||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
canLinkShare: OC.getCapabilities()['files_sharing']['public']['enabled'],
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
/**
|
||||
* Do we have link shares?
|
||||
|
|
Loading…
Reference in New Issue