Files
deck/src/components/CollaborationView.vue
Andy Scherzinger be11113d32 chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-07 15:51:49 +02:00

39 lines
698 B
Vue

<!--
- SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<div>
<CollectionList v-if="boardId"
:id="boardId"
:name="boardTitle"
type="deck" />
</div>
</template>
<script>
import { CollectionList } from 'nextcloud-vue-collections'
export default {
name: 'CollaborationView',
components: {
CollectionList,
},
computed: {
boardId() {
if (this.$root.model && this.$root.model.id) {
return '' + this.$root.model.id
}
return null
},
boardTitle() {
if (this.$root.model && this.$root.model.title) {
return '' + this.$root.model.title
}
return ''
},
},
}
</script>