diff options
author | René Gieling <github@dartcafe.de> | 2022-09-18 17:06:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-18 17:06:23 +0300 |
commit | 6ba2c793519d6b2230f395ddec5d41cd42422f2c (patch) | |
tree | 70d05dc451f4c1222e600597bc2047b1bee27b93 /src/js/views | |
parent | 2f8de4ef3f819571a724e5dbde1bfcead27cdce3 (diff) | |
parent | 58f608f241dbb0a88615eb4f962f14244cbbec1d (diff) |
Merge branch 'master' into dep/vue-nextcloud-6
Signed-off-by: René Gieling <github@dartcafe.de>
Diffstat (limited to 'src/js/views')
-rw-r--r-- | src/js/views/SideBar.vue | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/js/views/SideBar.vue b/src/js/views/SideBar.vue index f423da62..faa36f69 100644 --- a/src/js/views/SideBar.vue +++ b/src/js/views/SideBar.vue @@ -54,7 +54,7 @@ <SideBarTabShare /> </NcAppSidebarTab> - <NcAppSidebarTab v-if="acl.loggedIn && useCollaboration" + <AppSidebarTab v-if="projectsEnabled && acl.loggedIn && useCollaboration" :id="'collaboration'" :order="4" :name="t('polls', 'Collaboration')"> @@ -90,6 +90,7 @@ import { NcAppSidebar, NcAppSidebarTab } from '@nextcloud/vue' import { mapState } from 'vuex' import { emit } from '@nextcloud/event-bus' +import { loadState } from '@nextcloud/initial-state' import SidebarConfigurationIcon from 'vue-material-design-icons/Wrench.vue' import SidebarOptionsIcon from 'vue-material-design-icons/FormatListChecks.vue' import SidebarShareIcon from 'vue-material-design-icons/ShareVariant.vue' @@ -124,6 +125,12 @@ export default { }, }, + data() { + return { + projectsEnabled: loadState('core', 'projects_enabled', false), + } + }, + computed: { ...mapState({ poll: (state) => state.poll, |