Files
speckle-server/packages/frontend-2/components/project/page/discussions/Header.vue
T
Benjamin Ottensten de3f180830 Fix: Project page styling polish (#4666)
* Reduce heading size on project tabs

* Adjust spacings of project title area

* Adjust workspace icon on project page

- Don't link to workspace
- Only show if viewing a project from a workspace that you're not a member of
2025-05-05 21:57:33 +02:00

45 lines
1.1 KiB
Vue

<template>
<div>
<div class="flex justify-between items-center mb-8 mt-3">
<h1 class="block text-heading-lg">Discussions</h1>
<div class="space-x-2 flex items-center">
<FormCheckbox
:id="checkboxId"
v-model="finalIncludeArchived"
name="includeArchived"
:value="true"
label="Include resolved"
/>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import type { Optional } from '@speckle/shared'
import { graphql } from '~~/lib/common/generated/gql'
import type { ProjectDiscussionsPageHeader_ProjectFragment } from '~~/lib/common/generated/gql/graphql'
graphql(`
fragment ProjectDiscussionsPageHeader_Project on Project {
id
name
}
`)
const emit = defineEmits<{
(e: 'update:include-archived', val: boolean): void
}>()
const props = defineProps<{
project: ProjectDiscussionsPageHeader_ProjectFragment
includeArchived: Optional<true>
}>()
const finalIncludeArchived = computed({
get: () => props.includeArchived,
set: (newVal) => emit('update:include-archived', newVal)
})
const checkboxId = useId()
</script>