mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-26 19:44:57 +02:00
Clear filters for card (#10246)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
committed by
Artem Savchenko
parent
35228dd782
commit
ec440bd8e7
@@ -13,16 +13,16 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { FavoriteType, MasterTag } from '@hcengineering/card'
|
||||
import core, { Class, Doc, getCurrentAccount, Ref } from '@hcengineering/core'
|
||||
import { createQuery, getClient } from '@hcengineering/presentation'
|
||||
import { Action, getCurrentLocation, navigate, location as locationStore } from '@hcengineering/ui'
|
||||
import { MasterTag, FavoriteType } from '@hcengineering/card'
|
||||
import { TreeNode } from '@hcengineering/view-resources'
|
||||
import { GroupsNavModel } from '@hcengineering/workbench'
|
||||
import view from '@hcengineering/view'
|
||||
import preference from '@hcengineering/preference'
|
||||
import TagHierarchy from './TagHierarchy.svelte'
|
||||
import { createQuery, getClient } from '@hcengineering/presentation'
|
||||
import { Action, getCurrentLocation, location as locationStore, navigate } from '@hcengineering/ui'
|
||||
import view from '@hcengineering/view'
|
||||
import { setFilters, TreeNode } from '@hcengineering/view-resources'
|
||||
import { GroupsNavModel } from '@hcengineering/workbench'
|
||||
import card from '../../plugin'
|
||||
import TagHierarchy from './TagHierarchy.svelte'
|
||||
|
||||
export let model: GroupsNavModel
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
function selectType (type: Ref<MasterTag>): void {
|
||||
const loc = getCurrentLocation()
|
||||
loc.path = buildTypePath(loc.path, type)
|
||||
setFilters([])
|
||||
navigate(loc)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user