mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-30 02:37:46 +03:00
Enable kanban filter (#2243)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
parent
261284df29
commit
b2223035a9
@ -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'}
|
||||||
|
Loading…
Reference in New Issue
Block a user