Enable kanban filter (#2243)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-07-25 13:49:40 +06:00 committed by GitHub
parent 261284df29
commit b2223035a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,7 @@
import { showPopup } from '@anticrm/ui'
import {
ActionContext,
FilterBar,
focusStore,
ListSelectionProvider,
SelectDirection,
@ -102,6 +103,8 @@
listProvider.updateSelection(evt.detail.docs, evt.detail.value)
}
const onContextMenu = (evt: any) => showMenu(evt.detail.evt, evt.detail.objects)
$: query = { doneState: null, space }
let resultQuery = query
</script>
{#await cardPresenter then presenter}
@ -110,13 +113,14 @@
mode: 'browser'
}}
/>
<FilterBar {_class} {query} on:change={(e) => (resultQuery = e.detail)} />
<KanbanUI
bind:this={kanbanUI}
{_class}
{search}
{options}
query={{ doneState: null, space }}
query={resultQuery}
{states}
fieldName={'state'}
rankFieldName={'rank'}