Don't show link shares in sidebar if disabled
Fixes #17799 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
d4d44c8fa1
commit
d4ce8c9427
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