Files
deck/src/components/CollaborationView.vue
2025-01-16 18:03:33 +01:00

39 lines
693 B
Vue

<!--
- SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<div>
<NcCollectionList v-if="boardId"
:id="boardId"
:name="boardTitle"
type="deck" />
</div>
</template>
<script>
import { NcCollectionList } from '@nextcloud/vue'
export default {
name: 'CollaborationView',
components: {
NcCollectionList,
},
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>