Filters_bind_fix (#2102)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov
2022-06-19 23:25:14 +07:00
committed by GitHub
parent 8441f0b5ab
commit d0f68cc87f
19 changed files with 62 additions and 84 deletions
@@ -2,7 +2,7 @@
import { Ref, WithLookup } from '@anticrm/core'
import { Team, ViewOptions } from '@anticrm/tracker'
import { Button, Icon, Tooltip, IconOptions, showPopup, eventToHTMLElement } from '@anticrm/ui'
import { Filter, Viewlet } from '@anticrm/view'
import { Viewlet } from '@anticrm/view'
import { FilterButton, setActiveViewletId } from '@anticrm/view-resources'
import tracker from '../../plugin'
import ViewOptionsPopup from './ViewOptionsPopup.svelte'
@@ -11,7 +11,6 @@
export let viewlet: WithLookup<Viewlet> | undefined
export let viewlets: WithLookup<Viewlet>[] = []
export let label: string
export let filters: Filter[] = []
export let viewOptions: ViewOptions
const handleOptionsEditorOpened = (event: MouseEvent) => {
@@ -29,7 +28,7 @@
<div class="ac-header__wrap-title">
<div class="ac-header__icon"><Icon icon={tracker.icon.Issues} size={'small'} /></div>
<span class="ac-header__title">{label}</span>
<div class="ml-4"><FilterButton _class={tracker.class.Issue} bind:filters /></div>
<div class="ml-4"><FilterButton _class={tracker.class.Issue} /></div>
</div>
{#if viewlets.length > 1}
<div class="flex">
@@ -11,7 +11,7 @@
ViewOptions
} from '@anticrm/tracker'
import { Button, IconDetails } from '@anticrm/ui'
import view, { Filter, Viewlet } from '@anticrm/view'
import view, { Viewlet } from '@anticrm/view'
import { FilterBar } from '@anticrm/view-resources'
import { getActiveViewletId } from '@anticrm/view-resources/src/utils'
import tracker from '../../plugin'
@@ -26,7 +26,6 @@
export let panelWidth: number = 0
let viewlet: WithLookup<Viewlet> | undefined = undefined
let filters: Filter[]
let viewOptions: ViewOptions = {
groupBy: IssuesGrouping.Status,
orderBy: IssuesOrdering.Status,
@@ -78,7 +77,7 @@
</script>
{#if currentSpace}
<IssuesHeader {currentSpace} {viewlets} {label} bind:viewlet bind:viewOptions bind:filters>
<IssuesHeader {currentSpace} {viewlets} {label} bind:viewlet bind:viewOptions>
<svelte:fragment slot="extra">
{#if asideFloat && $$slots.aside}
<Button
@@ -93,7 +92,7 @@
{/if}
</svelte:fragment>
</IssuesHeader>
<FilterBar _class={tracker.class.Issue} {query} bind:filters on:change={(e) => (resultQuery = e.detail)} />
<FilterBar _class={tracker.class.Issue} {query} on:change={(e) => (resultQuery = e.detail)} />
<div class="flex h-full">
<div class="antiPanel-component">
<IssuesContent {currentSpace} {viewlet} query={resultQuery} {viewOptions} />