mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-24 20:13:00 +03:00
tsk-1371 Support indent for specials (#3128)
Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
parent
f24e3e6743
commit
0eb6485bca
@ -151,6 +151,7 @@
|
||||
icon={special.icon}
|
||||
selected={menuSelection ? false : special.id === currentSpecial}
|
||||
{disabled}
|
||||
indent={special.nestingLevel === 1 ? 'ml-2' : (special.nestingLevel === 2 && 'ml-4') || undefined}
|
||||
/>
|
||||
</NavLink>
|
||||
{/await}
|
||||
|
@ -85,6 +85,7 @@ export interface SpecialNavModel {
|
||||
// If defined, will be used to find spaces for visibleIf
|
||||
spaceClass?: Ref<Class<Space>>
|
||||
checkIsDisabled?: Resource<() => Promise<boolean>>
|
||||
nestingLevel?: number
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user