Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Gieling <github@dartcafe.de>2022-09-18 17:06:23 +0300
committerGitHub <noreply@github.com>2022-09-18 17:06:23 +0300
commit6ba2c793519d6b2230f395ddec5d41cd42422f2c (patch)
tree70d05dc451f4c1222e600597bc2047b1bee27b93 /src/js/views
parent2f8de4ef3f819571a724e5dbde1bfcead27cdce3 (diff)
parent58f608f241dbb0a88615eb4f962f14244cbbec1d (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.vue9
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,