M: Minor UI fixes
Some checks failed
Frontend CI / build (22.x) (push) Waiting to run
Frontend CI / notify-failure (push) Blocked by required conditions
Backend CI / build (3.12) (push) Has been cancelled
Backend CI / notify-failure (push) Has been cancelled

This commit is contained in:
Ivan 2025-07-10 17:09:03 +03:00
parent 656e0a91ca
commit 3cd7055dc5
2 changed files with 22 additions and 16 deletions

View File

@ -29,7 +29,7 @@ export function DlgDeleteOperation() {
target: target.id,
layout: layout,
keep_constituents: false,
delete_schema: false
delete_schema: true
}
});
@ -47,20 +47,6 @@ export function DlgDeleteOperation() {
helpTopic={HelpTopic.CC_PROPAGATION}
>
<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
control={control}
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>
);
}

View File

@ -67,7 +67,14 @@ export function TableSideConstituents({
size: 1000,
minSize: 250,
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}
/>
)
})
];