M: Minor UI fixes

This commit is contained in:
Ivan 2025-07-10 17:08:43 +03:00
parent 073cd5412f
commit 3bca1a8921
2 changed files with 22 additions and 16 deletions

View File

@ -29,7 +29,7 @@ export function DlgDeleteOperation() {
target: target.id, target: target.id,
layout: layout, layout: layout,
keep_constituents: false, keep_constituents: false,
delete_schema: false delete_schema: true
} }
}); });
@ -47,20 +47,6 @@ export function DlgDeleteOperation() {
helpTopic={HelpTopic.CC_PROPAGATION} helpTopic={HelpTopic.CC_PROPAGATION}
> >
<TextInput disabled dense noBorder id='operation_alias' label='Операция' value={target.alias} /> <TextInput disabled dense noBorder id='operation_alias' label='Операция' value={target.alias} />
<Controller
control={control}
name='keep_constituents'
render={({ field }) => (
<Checkbox
label='Сохранить наследованные конституенты'
titleHtml='Наследованные конституенты <br/>превратятся в дописанные'
value={field.value}
onChange={field.onChange}
disabled={target.result === null}
/>
)}
/>
<Controller <Controller
control={control} control={control}
name='delete_schema' name='delete_schema'
@ -78,6 +64,19 @@ export function DlgDeleteOperation() {
/> />
)} )}
/> />
<Controller
control={control}
name='keep_constituents'
render={({ field }) => (
<Checkbox
label='Сохранить наследованные конституенты'
titleHtml='Наследованные конституенты <br/>превратятся в дописанные'
value={field.value}
onChange={field.onChange}
disabled={target.result === null}
/>
)}
/>
</ModalForm> </ModalForm>
); );
} }

View File

@ -67,7 +67,14 @@ export function TableSideConstituents({
size: 1000, size: 1000,
minSize: 250, minSize: 250,
maxSize: 1000, maxSize: 1000,
cell: props => <TextContent noTooltip text={props.getValue()} maxLength={DESCRIPTION_MAX_SYMBOLS} /> cell: props => (
<TextContent
noTooltip
className={props.getValue().includes('×') ? 'break-all' : 'break-words'}
text={props.getValue()}
maxLength={DESCRIPTION_MAX_SYMBOLS}
/>
)
}) })
]; ];