Skip to content
Snippets Groups Projects
Unverified Commit d4ce8c94 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Don't show link shares in sidebar if disabled


Fixes #17799

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent d4d44c8f
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
--> -->
<template> <template>
<ul class="sharing-link-list"> <ul class="sharing-link-list" v-if="canLinkShare">
<!-- If no link shares, show the add link default entry --> <!-- If no link shares, show the add link default entry -->
<SharingEntryLink v-if="!hasLinkShares && canReshare" <SharingEntryLink v-if="!hasLinkShares && canReshare"
:can-reshare="canReshare" :can-reshare="canReshare"
...@@ -75,6 +75,12 @@ export default { ...@@ -75,6 +75,12 @@ export default {
}, },
}, },
data() {
return {
canLinkShare: OC.getCapabilities()['files_sharing']['public']['enabled'],
}
},
computed: { computed: {
/** /**
* Do we have link shares? * Do we have link shares?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment