mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-22 19:38:17 +00:00
Fix table config (#7205)
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
872c148288
commit
62d10fa1db
@ -52,16 +52,6 @@
|
||||
onMount(() => {
|
||||
;(document.activeElement as HTMLElement)?.blur()
|
||||
})
|
||||
|
||||
// Search config
|
||||
const _config = config
|
||||
|
||||
function updateConfig (config: Array<BuildModelKey | string>, search?: string): void {
|
||||
const useSearch = search !== '' && search != null
|
||||
prefferedSorting = !useSearch ? prefferedSorting : '#score'
|
||||
}
|
||||
|
||||
$: updateConfig(config, query.$search)
|
||||
</script>
|
||||
|
||||
<svelte:window />
|
||||
@ -76,7 +66,7 @@
|
||||
<Table
|
||||
bind:this={table}
|
||||
{_class}
|
||||
config={_config}
|
||||
{config}
|
||||
{options}
|
||||
{query}
|
||||
{totalQuery}
|
||||
|
Loading…
Reference in New Issue
Block a user