mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 16:27:22 +00:00
Fix minor issues (#5919)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
27454ca707
commit
f1cc06fc57
@ -98,7 +98,7 @@
|
|||||||
class:iconOnly
|
class:iconOnly
|
||||||
disabled={loading || disabled}
|
disabled={loading || disabled}
|
||||||
use:tp={tooltip}
|
use:tp={tooltip}
|
||||||
on:click|stopPropagation
|
on:click|stopPropagation|preventDefault
|
||||||
on:keydown
|
on:keydown
|
||||||
>
|
>
|
||||||
{#if loading}
|
{#if loading}
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
class:error
|
class:error
|
||||||
class:disabled
|
class:disabled
|
||||||
style:width
|
style:width
|
||||||
on:click={() => {
|
on:click|stopPropagation={() => {
|
||||||
if (!autoAction) element?.focus()
|
if (!autoAction) element?.focus()
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -304,6 +304,12 @@
|
|||||||
size={'small'}
|
size={'small'}
|
||||||
label={setting.string.EnterOptionTitle}
|
label={setting.string.EnterOptionTitle}
|
||||||
on:keydown={handleKeydown}
|
on:keydown={handleKeydown}
|
||||||
|
on:blur={() => {
|
||||||
|
newValue = newValue.trim()
|
||||||
|
if (!newValue.length) return
|
||||||
|
add()
|
||||||
|
newItem = false
|
||||||
|
}}
|
||||||
bind:value={newValue}
|
bind:value={newValue}
|
||||||
width={'100%'}
|
width={'100%'}
|
||||||
autoFocus
|
autoFocus
|
||||||
|
@ -238,6 +238,10 @@
|
|||||||
size={'small'}
|
size={'small'}
|
||||||
label={setting.string.EnterOptionTitle}
|
label={setting.string.EnterOptionTitle}
|
||||||
on:keydown={handleKeydown}
|
on:keydown={handleKeydown}
|
||||||
|
on:blur={() => {
|
||||||
|
add()
|
||||||
|
newItem = false
|
||||||
|
}}
|
||||||
bind:value={newValue}
|
bind:value={newValue}
|
||||||
width={'100%'}
|
width={'100%'}
|
||||||
autoFocus
|
autoFocus
|
||||||
|
@ -85,7 +85,7 @@ export { StatePresenter, StateRefPresenter, TaskKindSelector, TypeStatesPopup }
|
|||||||
async function editStatuses (object: Project, ev: Event): Promise<void> {
|
async function editStatuses (object: Project, ev: Event): Promise<void> {
|
||||||
const loc = getCurrentLocation()
|
const loc = getCurrentLocation()
|
||||||
loc.path[2] = 'setting'
|
loc.path[2] = 'setting'
|
||||||
loc.path[3] = 'statuses'
|
loc.path[3] = 'spaceTypes'
|
||||||
loc.path[4] = object.type
|
loc.path[4] = object.type
|
||||||
navigate(loc)
|
navigate(loc)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user