mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-09 19:27:44 +02:00
Make visibleIf async in SpecialNavModel (#2684)
Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
@@ -79,7 +79,7 @@ export interface SpecialNavModel {
|
||||
componentProps?: Record<string, string>
|
||||
// If not top and bottom, position will be sorted alphabetically.
|
||||
position?: 'top' | 'bottom' | string // undefined == 'top
|
||||
visibleIf?: Resource<(spaces: Space[]) => boolean>
|
||||
visibleIf?: Resource<(spaces: Space[]) => Promise<boolean>>
|
||||
// If defined, will be used to find spaces for visibleIf
|
||||
spaceClass?: Ref<Class<Space>>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user