mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-18 07:37:49 +02:00
24 lines
732 B
Svelte
24 lines
732 B
Svelte
<!--
|
|
Copyright @ 2024 Hardcore Engineering Inc.
|
|
-->
|
|
|
|
<script lang="ts">
|
|
import type { TrainingRequest } from '@hcengineering/training'
|
|
import { DocumentQuery } from '@hcengineering/core'
|
|
import { SpecialView } from '@hcengineering/workbench-resources'
|
|
import type { ComponentProps } from 'svelte'
|
|
import { getCurrentEmployeeRef } from '../utils'
|
|
|
|
type $$Props = ComponentProps<SpecialView>
|
|
$: ({ baseQuery, ...rest } = $$props as $$Props)
|
|
|
|
let extendedBaseQuery: DocumentQuery<TrainingRequest>
|
|
$: extendedBaseQuery = {
|
|
...((baseQuery ?? {}) as DocumentQuery<TrainingRequest>),
|
|
trainees: getCurrentEmployeeRef(),
|
|
canceledOn: null
|
|
}
|
|
</script>
|
|
|
|
<SpecialView {...rest} baseQuery={extendedBaseQuery} />
|