Corrected No date. Fix Status and Priority editors. Little fixes. (#1697)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2022-05-09 18:37:34 +07:00
committed by GitHub
parent 9266a61c98
commit b8e942a145
16 changed files with 239 additions and 289 deletions
@@ -17,6 +17,7 @@
import { Issue, IssueStatus, Team } from '@anticrm/tracker'
import { getClient } from '@anticrm/presentation'
import { Tooltip } from '@anticrm/ui'
import type { ButtonKind, ButtonSize } from '@anticrm/ui'
import tracker from '../../plugin'
import StatusSelector from '../StatusSelector.svelte'
@@ -26,6 +27,11 @@
export let isEditable: boolean = true
export let shouldShowLabel: boolean = false
export let kind: ButtonKind = 'link'
export let size: ButtonSize = 'large'
export let justify: 'left' | 'center' = 'left'
export let width: string | undefined = '100%'
const client = getClient()
const handleStatusChanged = async (newStatus: Ref<IssueStatus> | undefined) => {
@@ -45,9 +51,12 @@
{#if value}
{#if isEditable}
<Tooltip direction={'bottom'} label={tracker.string.SetStatus}>
<Tooltip label={tracker.string.SetStatus} fill>
<StatusSelector
kind={'icon'}
{kind}
{size}
{width}
{justify}
{isEditable}
{shouldShowLabel}
{statuses}
@@ -57,7 +66,10 @@
</Tooltip>
{:else}
<StatusSelector
kind={'icon'}
{kind}
{size}
{width}
{justify}
{isEditable}
{shouldShowLabel}
{statuses}