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:
authordartcafe <github@dartcafe.de>2021-07-04 00:41:01 +0300
committerdartcafe <github@dartcafe.de>2021-07-10 10:21:19 +0300
commit2dd6c974ad37aeac7185fd8de6cdbaf292fa95f7 (patch)
treeb1c90a7a7b9c61e8bef632fdaa9ccde269620bad /src/js/components/SideBar
parent7e2f0a365496311025a103bc8c24db622281ebbd (diff)
Load sidebar and navigation via router
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/SideBar')
-rw-r--r--src/js/components/SideBar/SideBar.vue100
1 files changed, 0 insertions, 100 deletions
diff --git a/src/js/components/SideBar/SideBar.vue b/src/js/components/SideBar/SideBar.vue
deleted file mode 100644
index 49d71747..00000000
--- a/src/js/components/SideBar/SideBar.vue
+++ /dev/null
@@ -1,100 +0,0 @@
-<!--
- - @copyright Copyright (c) 2018 René Gieling <github@dartcafe.de>
- -
- - @author René Gieling <github@dartcafe.de>
- -
- - @license GNU AGPL version 3 or any later version
- -
- - This program is free software: you can redistribute it and/or modify
- - it under the terms of the GNU Affero General Public License as
- - published by the Free Software Foundation, either version 3 of the
- - License, or (at your option) any later version.
- -
- - This program is distributed in the hope that it will be useful,
- - but WITHOUT ANY WARRANTY; without even the implied warranty of
- - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- - GNU Affero General Public License for more details.
- -
- - You should have received a copy of the GNU Affero General Public License
- - along with this program. If not, see <http://www.gnu.org/licenses/>.
- -
- -->
-
-<template>
- <AppSidebar ref="sideBar"
- :active="active"
- :title="t('polls', 'Details')"
- @close="closeSideBar()">
- <AppSidebarTab v-if="acl.allowEdit"
- :id="'configuration'"
- :order="1"
- :name="t('polls', 'Configuration')"
- icon="icon-settings">
- <SideBarTabConfiguration />
- </AppSidebarTab>
-
- <AppSidebarTab v-if="acl.allowEdit"
- :id="'options'"
- :order="2"
- :name="t('polls', 'Options')"
- icon="icon-toggle-filelist">
- <SideBarTabOptions />
- </AppSidebarTab>
-
- <AppSidebarTab v-if="acl.allowEdit"
- :id="'shares'"
- :order="3"
- :name="t('polls', 'Shares')"
- icon="icon-share">
- <SideBarTabShare />
- </AppSidebarTab>
-
- <AppSidebarTab v-if="acl.allowComment"
- :id="'comments'"
- :order="4"
- :name="t('polls', 'Comments')"
- icon="icon-comment">
- <SideBarTabComments />
- </AppSidebarTab>
- </AppSidebar>
-</template>
-
-<script>
-import { AppSidebar, AppSidebarTab } from '@nextcloud/vue'
-import { mapState } from 'vuex'
-import { emit } from '@nextcloud/event-bus'
-
-export default {
- name: 'SideBar',
-
- components: {
- SideBarTabConfiguration: () => import('./SideBarTabConfiguration'),
- SideBarTabComments: () => import('./SideBarTabComments'),
- SideBarTabOptions: () => import('./SideBarTabOptions'),
- SideBarTabShare: () => import('./SideBarTabShare'),
- AppSidebar,
- AppSidebarTab,
- },
-
- props: {
- active: {
- type: String,
- default: t('polls', 'Comments').toLowerCase(),
- },
- },
-
- computed: {
- ...mapState({
- poll: (state) => state.poll,
- acl: (state) => state.poll.acl,
- }),
- },
- methods: {
- closeSideBar() {
- emit('toggle-sidebar', { open: false })
- },
- },
-
-}
-
-</script>