diff options
author | dartcafe <github@dartcafe.de> | 2022-01-16 19:34:47 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2022-01-16 19:34:47 +0300 |
commit | 969acbec9b159f1e82a0c8742e55b0d0decb83a6 (patch) | |
tree | cd52b4c8630ed1b9b97ac493a535dc8cbfefdcaa /src/js/components/SideBar | |
parent | 1fbac009f190613aabcfd90f85acbf75cb4361e9 (diff) |
Implement Collections
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/SideBar')
-rw-r--r-- | src/js/components/SideBar/SideBarTabShare.vue | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/js/components/SideBar/SideBarTabShare.vue b/src/js/components/SideBar/SideBarTabShare.vue index 2300977e..64c91e24 100644 --- a/src/js/components/SideBar/SideBarTabShare.vue +++ b/src/js/components/SideBar/SideBarTabShare.vue @@ -22,14 +22,20 @@ <template> <div class="sidebar-share"> + <CollectionList v-if="pollId" + :id="`${pollId}`" + :name="pollTitle" + type="poll" /> <SharesListUnsent class="shares unsent" /> <SharesList class="shares effective" /> </div> </template> <script> +import { mapState } from 'vuex' import SharesList from '../Shares/SharesList' import SharesListUnsent from '../Shares/SharesListUnsent' +import { CollectionList } from 'nextcloud-vue-collections' export default { name: 'SideBarTabShare', @@ -37,8 +43,16 @@ export default { components: { SharesList, SharesListUnsent, + CollectionList, }, + computed: { + ...mapState({ + pollId: (state) => state.poll.id, + pollTitle: (state) => state.poll.title, + }), + + }, } </script> |