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:
Roeland Jago Douma 2020-01-06 12:53:48 +01:00 committed by GitHub
commit ad699682cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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?