Added Settings UI tests, UI fix (#6317)

This commit is contained in:
Alexander Platov
2024-08-12 13:30:17 +07:00
committed by GitHub
parent d9640ccaa0
commit 840d26dd01
21 changed files with 255 additions and 15 deletions
@@ -26,6 +26,6 @@
<div class="hulyTableAttr-header font-medium-12">
<IconFolder size="small" />
<span><Label label={task.string.Collections} /></span>
<ButtonIcon kind="primary" icon={IconAdd} size="small" {disabled} on:click={() => {}} />
<ButtonIcon kind="primary" icon={IconAdd} size="small" dataId={'btnAdd'} {disabled} on:click={() => {}} />
</div>
{/if}
@@ -63,6 +63,7 @@
kind="primary"
icon={IconAdd}
size="small"
dataId={'btnAdd'}
{disabled}
on:click={(ev) => {
if (disabled) {
@@ -2,7 +2,7 @@
import { Class, Doc, Ref, toIdMap } from '@hcengineering/core'
import { getClient } from '@hcengineering/presentation'
import task, { ProjectType, TaskType } from '@hcengineering/task'
import { ButtonKind, DropdownLabels } from '@hcengineering/ui'
import { ButtonKind, ButtonSize, DropdownLabels } from '@hcengineering/ui'
import { createEventDispatcher, onDestroy } from 'svelte'
import { selectedTaskTypeStore, taskTypeStore } from '../..'
@@ -11,7 +11,9 @@
export let focusIndex: number = -1
export let baseClass: Ref<Class<Doc>> | undefined = undefined
export let kind: ButtonKind = 'regular'
export let size: ButtonSize = 'medium'
export let allTypes = false
const client = getClient()
$: taskTypeDescriptors = toIdMap(client.getModel().findAllSync(task.class.TaskTypeDescriptor, {}))
@@ -48,8 +50,9 @@
<DropdownLabels
{focusIndex}
{kind}
size={'medium'}
{size}
{items}
dataId={'btnSelectTaskType'}
bind:selected={value}
enableSearch={false}
on:selected={change}
@@ -147,6 +147,7 @@
iconProps={{ value: taskType }}
size={'large'}
kind={'secondary'}
dataId={'btnSelectIcon'}
disabled={readonly}
on:click={selectIcon}
/>