mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
USER-79: fixed the sidebar in the Panel. Update IssuePreview layout. (#3201)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { getClient } from '@hcengineering/presentation'
|
||||
import { DueDatePresenter } from '@hcengineering/ui'
|
||||
import { DueDatePresenter, ButtonSize, ButtonKind } from '@hcengineering/ui'
|
||||
import { WithLookup } from '@hcengineering/core'
|
||||
import { Task } from '@hcengineering/task'
|
||||
|
||||
export let object: WithLookup<Task>
|
||||
export let width: string | undefined = undefined
|
||||
export let size: ButtonSize = 'medium'
|
||||
export let kind: ButtonKind = 'link'
|
||||
export let editable: boolean = true
|
||||
|
||||
const client = getClient()
|
||||
$: shouldIgnoreOverdue = object.doneState != null
|
||||
@@ -28,9 +32,11 @@
|
||||
|
||||
{#if object}
|
||||
<DueDatePresenter
|
||||
kind={'link'}
|
||||
{kind}
|
||||
{width}
|
||||
{size}
|
||||
value={object.dueDate}
|
||||
editable
|
||||
{editable}
|
||||
onChange={(e) => handleDueDateChanged(e)}
|
||||
{shouldIgnoreOverdue}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user