mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
Fix issue templates (#2517)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
a02d882774
commit
fac31c2508
@ -2,11 +2,12 @@
|
||||
import { DocumentQuery, WithLookup } from '@hcengineering/core'
|
||||
import { IssueTemplate } from '@hcengineering/tracker'
|
||||
import { Component } from '@hcengineering/ui'
|
||||
import { Viewlet } from '@hcengineering/view'
|
||||
import { Viewlet, ViewOptions } from '@hcengineering/view'
|
||||
import tracker from '../../plugin'
|
||||
import CreateIssueTemplate from './CreateIssueTemplate.svelte'
|
||||
|
||||
export let viewlet: WithLookup<Viewlet>
|
||||
export let viewOptions: ViewOptions
|
||||
export let query: DocumentQuery<IssueTemplate> = {}
|
||||
|
||||
const createItemDialog = CreateIssueTemplate
|
||||
@ -22,7 +23,8 @@
|
||||
options: viewlet.options,
|
||||
createItemDialog,
|
||||
createItemLabel,
|
||||
viewOptions: viewlet.viewOptions?.other,
|
||||
viewOptions,
|
||||
viewOptionsConfig: viewlet.viewOptions?.other,
|
||||
viewlet,
|
||||
query
|
||||
}}
|
||||
|
@ -107,8 +107,8 @@
|
||||
<slot name="afterHeader" />
|
||||
<FilterBar _class={tracker.class.IssueTemplate} query={searchQuery} on:change={(e) => (resultQuery = e.detail)} />
|
||||
<div class="flex w-full h-full clear-mins">
|
||||
{#if viewlet}
|
||||
<IssueTemplatesContent {viewlet} query={resultQuery} />
|
||||
{#if viewlet && viewOptions}
|
||||
<IssueTemplatesContent {viewOptions} {viewlet} query={resultQuery} />
|
||||
{/if}
|
||||
{#if $$slots.aside !== undefined && asideShown}
|
||||
<div class="popupPanel-body__aside flex" class:float={asideFloat} class:shown={asideShown}>
|
||||
|
Loading…
Reference in New Issue
Block a user