processes UI (#8349)

This commit is contained in:
Denis Bykhov
2025-03-26 17:13:09 +07:00
committed by GitHub
parent e08b0392fa
commit 0641da8a15
32 changed files with 628 additions and 140 deletions
+9 -1
View File
@@ -20,7 +20,8 @@ import core, {
type Doc,
type Ref,
type RefTo,
type Type
type Type,
type DocumentQuery
} from '@hcengineering/core'
import process, {
type Context,
@@ -178,3 +179,10 @@ export function getValueReduceFunc (source: AnyAttribute, target: AnyAttribute):
if (target.type._class === core.class.ArrOf) return undefined
return process.function.FirstValue
}
export function showDoneQuery (value: any, query: DocumentQuery<Doc>): DocumentQuery<Doc> {
if (value === false) {
return { ...query, done: false }
}
return query
}