tsk-1371 Support indent for specials (#3128)

Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
Denis Bunakalya 2023-05-03 16:48:28 +03:00 committed by GitHub
parent f24e3e6743
commit 0eb6485bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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}

View File

@ -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
}
/**