2f8272b6ae
* feat(shared): modularized package & node16 support * lockfile update * various fixes * moar fixes * added znv and zod as devdeps of shared * lockfile update
34 lines
1.0 KiB
Vue
34 lines
1.0 KiB
Vue
<template>
|
|
<div>
|
|
<div v-if="project">
|
|
<ProjectPageDiscussionsHeader
|
|
v-model:grid-or-list="gridOrList"
|
|
v-model:include-archived="includeArchived"
|
|
:project="project"
|
|
/>
|
|
<ProjectPageDiscussionsResults
|
|
:grid-or-list="gridOrList"
|
|
:project="project"
|
|
:include-archived="!!includeArchived"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import { useQuery } from '@vue/apollo-composable'
|
|
import type { Optional } from '@speckle/shared'
|
|
import { useProjectPageItemViewType } from '~~/lib/projects/composables/projectPages'
|
|
import { projectDiscussionsPageQuery } from '~~/lib/projects/graphql/queries'
|
|
|
|
const gridOrList = useProjectPageItemViewType('Discussions')
|
|
const includeArchived = ref(undefined as Optional<true>)
|
|
|
|
const route = useRoute()
|
|
const projectId = computed(() => route.params.id as string)
|
|
const { result } = useQuery(projectDiscussionsPageQuery, () => ({
|
|
projectId: projectId.value
|
|
}))
|
|
|
|
const project = computed(() => result.value?.project)
|
|
</script>
|