M: Fix inheritance indicators
This commit is contained in:
parent
51f22a4ff4
commit
e2e864d18b
|
@ -249,16 +249,16 @@ function FormConstituenta({
|
|||
icon={<IconSave size='1.25rem' />}
|
||||
/>
|
||||
<Overlay position='top-[0.1rem] left-[0.4rem]' className='cc-icons'>
|
||||
{state.is_inherited_parent ? (
|
||||
{state.is_inherited_parent && !state.is_inherited ? (
|
||||
<MiniButton
|
||||
icon={<IconPredecessor size='1.25rem' className='clr-text-red' />}
|
||||
icon={<IconPredecessor size='1.25rem' className='clr-text-primary' />}
|
||||
disabled
|
||||
titleHtml='Внимание!</br> Конституента имеет потомков<br/> в операционной схеме синтеза'
|
||||
/>
|
||||
) : null}
|
||||
{state.is_inherited ? (
|
||||
<MiniButton
|
||||
icon={<IconChild size='1.25rem' className='clr-text-red' />}
|
||||
icon={<IconChild size='1.25rem' className='clr-text-primary' />}
|
||||
disabled
|
||||
titleHtml='Внимание!</br> Конституента является наследником<br/>'
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue
Block a user