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:
Roeland Jago Douma 2020-01-05 15:17:56 +01:00
parent d4d44c8fa1
commit d4ce8c9427
No known key found for this signature in database
GPG Key ID: F941078878347C0C
3 changed files with 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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?