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>2021-12-29 02:58:24 +0300
committerGitHub <noreply@github.com>2021-12-29 02:58:24 +0300
commit70d682d911f8410474709d240b767280ae80e011 (patch)
tree01939f07ecbc22118cd101ca6c4ebbadd90e2db8 /src/js/components/SideBar
parentc4e4c7cde4965c62c7b272065d4f13bb1fc8a7b8 (diff)
Adding activities (#2154)
Diffstat (limited to 'src/js/components/SideBar')
-rw-r--r--src/js/components/SideBar/SideBarTabActivity.vue56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/js/components/SideBar/SideBarTabActivity.vue b/src/js/components/SideBar/SideBarTabActivity.vue
new file mode 100644
index 00000000..ec71d0d4
--- /dev/null
+++ b/src/js/components/SideBar/SideBarTabActivity.vue
@@ -0,0 +1,56 @@
+<!--
+ - @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>
+ <div class="comments">
+ <Activities v-if="!showEmptyContent" />
+ <EmptyContent v-else icon="icon-comment">
+ {{ t('polls', 'No activity') }}
+ </EmptyContent>
+ </div>
+</template>
+
+<script>
+import Activities from '../Activity/Activities'
+import { EmptyContent } from '@nextcloud/vue'
+import { mapState } from 'vuex'
+
+export default {
+ name: 'SideBarTabActivity',
+ components: {
+ Activities,
+ EmptyContent,
+ },
+
+ computed: {
+ ...mapState({
+ acl: (state) => state.poll.acl,
+ }),
+
+ showEmptyContent() {
+ return false
+ },
+
+ },
+
+}
+</script>