mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +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
|
||||
disabled={loading || disabled}
|
||||
use:tp={tooltip}
|
||||
on:click|stopPropagation
|
||||
on:click|stopPropagation|preventDefault
|
||||
on:keydown
|
||||
>
|
||||
{#if loading}
|
||||
|
@ -65,7 +65,7 @@
|
||||
class:error
|
||||
class:disabled
|
||||
style:width
|
||||
on:click={() => {
|
||||
on:click|stopPropagation={() => {
|
||||
if (!autoAction) element?.focus()
|
||||
}}
|
||||
>
|
||||
|
@ -304,6 +304,12 @@
|
||||
size={'small'}
|
||||
label={setting.string.EnterOptionTitle}
|
||||
on:keydown={handleKeydown}
|
||||
on:blur={() => {
|
||||
newValue = newValue.trim()
|
||||
if (!newValue.length) return
|
||||
add()
|
||||
newItem = false
|
||||
}}
|
||||
bind:value={newValue}
|
||||
width={'100%'}
|
||||
autoFocus
|
||||
|
@ -238,6 +238,10 @@
|
||||
size={'small'}
|
||||
label={setting.string.EnterOptionTitle}
|
||||
on:keydown={handleKeydown}
|
||||
on:blur={() => {
|
||||
add()
|
||||
newItem = false
|
||||
}}
|
||||
bind:value={newValue}
|
||||
width={'100%'}
|
||||
autoFocus
|
||||
|
@ -85,7 +85,7 @@ export { StatePresenter, StateRefPresenter, TaskKindSelector, TypeStatesPopup }
|
||||
async function editStatuses (object: Project, ev: Event): Promise<void> {
|
||||
const loc = getCurrentLocation()
|
||||
loc.path[2] = 'setting'
|
||||
loc.path[3] = 'statuses'
|
||||
loc.path[3] = 'spaceTypes'
|
||||
loc.path[4] = object.type
|
||||
navigate(loc)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user