Show/hide completed applicants in all viewlets (#7428)

This commit is contained in:
Chunosov
2024-12-12 09:45:50 +07:00
committed by GitHub
parent 962f3816b9
commit fbb3471a49
5 changed files with 73 additions and 36 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ import {
type ViewQueryOption,
type Viewlet
} from '@hcengineering/view'
import { getCategories, getCategorySpaces } from '@hcengineering/view-resources'
import { getCategories, getCategorySpaces, concatCategories } from '@hcengineering/view-resources'
/**
* @public
@@ -55,7 +55,7 @@ export async function updateTaskKanbanCategories (
viewlet.descriptor
)
if (res !== undefined) {
categories = res
categories = concatCategories(res, categories)
break
}
}
@@ -78,7 +78,7 @@ export async function getTaskKanbanResultQuery (
if (viewOption.actionTarget !== 'query') continue
const queryOption = viewOption as ViewQueryOption
const f = await getResource(queryOption.action)
result = f(viewOptionsStore[queryOption.key] ?? queryOption.defaultValue, query)
result = f(viewOptionsStore[queryOption.key] ?? queryOption.defaultValue, result)
}
return result
}