mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 20:45:00 +02:00
Added Settings UI tests, UI fix (#6317)
This commit is contained in:
+1
-1
@@ -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}
|
||||
|
||||
+1
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user