Skip to content

Commit

Permalink
remove issues count
Browse files Browse the repository at this point in the history
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
  • Loading branch information
wazsone committed May 17, 2023
1 parent cc3afc4 commit 3b82741
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -23,8 +23,6 @@
tooltip: views.$lookup?.descriptor?.label
}
})
$: count = $focusStore.provider?.docs().length
$: headerTitle = count === undefined ? label : `${label} (${count})`
</script>

<div
Expand All @@ -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} />
Expand Down

0 comments on commit 3b82741

Please sign in to comment.