remove issues count (#3205)

Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
Ruslan Bayandinov 2023-05-17 18:33:36 +07:00 committed by GitHub
parent 278563421a
commit 123828d078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
import { Ref, Space } from '@hcengineering/core'
import { TabList, SearchEdit } from '@hcengineering/ui'
import { Viewlet } from '@hcengineering/view'
import { focusStore, FilterButton, setActiveViewletId } from '@hcengineering/view-resources'
import { FilterButton, setActiveViewletId } from '@hcengineering/view-resources'
import tracker from '../../plugin'
import { WithLookup } from '@hcengineering/core'
import ModeSelector from '../ModeSelector.svelte'
@ -23,8 +23,6 @@
tooltip: views.$lookup?.descriptor?.label
}
})
$: count = $focusStore.provider?.docs().length
$: headerTitle = count === undefined ? label : `${label} (${count})`
</script>
<div
@ -37,7 +35,7 @@
<slot name="label_selector" />
{:else}
{#if label}
<span class="ac-header__title">{headerTitle}</span>
<span class="ac-header__title">{label}</span>
{/if}
{#if modeSelectorProps !== undefined}
<ModeSelector props={modeSelectorProps} />