mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 01:07:50 +00:00
Do not allow empty string filters (#7010)
This commit is contained in:
parent
c7fb3bdb98
commit
6d3fd41f02
@ -41,7 +41,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function save () {
|
function save () {
|
||||||
filter.value = search ? [search] : []
|
if (search == null || search === '') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
filter.value = [search]
|
||||||
|
|
||||||
onChange(filter)
|
onChange(filter)
|
||||||
dispatch('close')
|
dispatch('close')
|
||||||
@ -61,5 +64,5 @@
|
|||||||
on:change
|
on:change
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button shape="filter" label={view.string.Apply} on:click={save} />
|
<Button shape="filter" label={view.string.Apply} disabled={search === ''} on:click={save} />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user