mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 12:47:45 +02:00
processes UI (#8349)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user