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