mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-24 02:25:00 +02:00
Use navigation by types instead of spaces (#10083)
This commit is contained in:
@@ -114,6 +114,7 @@ export interface ApplicationNavModel extends Doc {
|
||||
|
||||
spaces?: SpacesNavModel[]
|
||||
specials?: SpecialNavModel[]
|
||||
groups?: GroupsNavModel[]
|
||||
}
|
||||
|
||||
/** @public */
|
||||
@@ -136,10 +137,25 @@ export interface SpacesNavModel {
|
||||
visibleIf?: Resource<(space: Space) => Promise<boolean>>
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export interface GroupsNavModel {
|
||||
id: string // Id could be used for extending of navigation model
|
||||
label?: IntlString
|
||||
groupByClass: Ref<Class<Doc>> // Any class to group by (MasterTag, Project, etc.)
|
||||
icon?: Asset
|
||||
component?: AnyComponent // Component to render the group navigation (e.g., TypesNavigator)
|
||||
|
||||
// Child special items.
|
||||
specials?: SpecialNavModel[]
|
||||
|
||||
visibleIf?: Resource<(docs: Doc[]) => Promise<boolean>>
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export interface NavigatorModel {
|
||||
spaces: SpacesNavModel[]
|
||||
specials?: SpecialNavModel[]
|
||||
groups?: GroupsNavModel[]
|
||||
}
|
||||
|
||||
/** @public */
|
||||
|
||||
Reference in New Issue
Block a user