mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-29 11:43:49 +00:00
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
parent
86ea9694f3
commit
3066e8554e
@ -168,7 +168,7 @@ export class TIssue extends TDoc implements Issue {
|
|||||||
|
|
||||||
declare space: Ref<Team>
|
declare space: Ref<Team>
|
||||||
|
|
||||||
@Prop(TypeDate(true), tracker.string.Number)
|
@Prop(TypeDate(true), tracker.string.DueDate)
|
||||||
dueDate!: Timestamp | null
|
dueDate!: Timestamp | null
|
||||||
|
|
||||||
@Prop(TypeString(), tracker.string.Rank)
|
@Prop(TypeString(), tracker.string.Rank)
|
||||||
|
@ -20,7 +20,16 @@
|
|||||||
import { createQuery, getClient, UserBox } from '@anticrm/presentation'
|
import { createQuery, getClient, UserBox } from '@anticrm/presentation'
|
||||||
import { StyledTextBox } from '@anticrm/text-editor'
|
import { StyledTextBox } from '@anticrm/text-editor'
|
||||||
import type { Issue, IssueStatus, Team } from '@anticrm/tracker'
|
import type { Issue, IssueStatus, Team } from '@anticrm/tracker'
|
||||||
import { Button, EditBox, IconDownOutline, IconEdit, IconMoreH, IconUpOutline, Label } from '@anticrm/ui'
|
import {
|
||||||
|
Button,
|
||||||
|
DatePresenter,
|
||||||
|
EditBox,
|
||||||
|
IconDownOutline,
|
||||||
|
IconEdit,
|
||||||
|
IconMoreH,
|
||||||
|
IconUpOutline,
|
||||||
|
Label
|
||||||
|
} from '@anticrm/ui'
|
||||||
import { createEventDispatcher, onMount } from 'svelte'
|
import { createEventDispatcher, onMount } from 'svelte'
|
||||||
import tracker from '../../plugin'
|
import tracker from '../../plugin'
|
||||||
import IssuePresenter from './IssuePresenter.svelte'
|
import IssuePresenter from './IssuePresenter.svelte'
|
||||||
@ -136,7 +145,7 @@
|
|||||||
alwaysEdit
|
alwaysEdit
|
||||||
bind:content={issue.description}
|
bind:content={issue.description}
|
||||||
placeholder={tracker.string.IssueDescriptionPlaceholder}
|
placeholder={tracker.string.IssueDescriptionPlaceholder}
|
||||||
on:value={(evt) => change('description', evt.detail)}
|
on:value={(evt) => evt.detail !== issue?.description && change('description', evt.detail)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -221,6 +230,21 @@
|
|||||||
kind="link"
|
kind="link"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#if issue.dueDate !== null}
|
||||||
|
<div class="devider" />
|
||||||
|
|
||||||
|
<div class="flex-row-center mb-4">
|
||||||
|
<span class="label w-24">
|
||||||
|
<Label label={tracker.string.DueDate} />
|
||||||
|
</span>
|
||||||
|
<DatePresenter
|
||||||
|
bind:value={issue.dueDate}
|
||||||
|
editable
|
||||||
|
on:change={({ detail }) => change('dueDate', detail)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="buttons-group small-gap">
|
<div class="buttons-group small-gap">
|
||||||
|
Loading…
Reference in New Issue
Block a user