Compare commits
2 Commits
9b52690112
...
1843ad68d4
| Author | SHA1 | Date | |
|---|---|---|---|
| 1843ad68d4 | |||
|
|
7f979d77f0 |
@ -113,7 +113,7 @@ const AuditLogsFilters = ({
|
||||
getOptionLabel={(option) => option.title || option.name || ''}
|
||||
value={selectedSsp}
|
||||
onChange={(event, newValue) => onSspChange(newValue)}
|
||||
renderInput={(params) => <TextField {...params} placeholder='Все ССП' />}
|
||||
renderInput={(params) => <TextField {...params} placeholder='Все ССП/РФ' />}
|
||||
/>
|
||||
</FilterFieldWrapper>
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ const DictVspFilters = ({ ssps, selectedSsp = null, onSspChange }) => {
|
||||
value={selectedSsp}
|
||||
getOptionKey={(option) => option.id || option.name || option.title}
|
||||
onChange={(event, newValue) => onSspChange(newValue)}
|
||||
renderInput={(params) => <TextField {...params} placeholder='Все ССП' />}
|
||||
renderInput={(params) => <TextField {...params} placeholder='Все ССП/РФ' />}
|
||||
/>
|
||||
</Box>
|
||||
</Stack>
|
||||
|
||||
@ -233,7 +233,6 @@ const ModalEditAddVsp = ({ open, onClose, onSave, onDelete, initialData = null,
|
||||
const selectedSsp = ssps.find((ssp) => ssp.id === formData.ssp_id) || null;
|
||||
|
||||
const showActions = true;
|
||||
const showDeleteButton = !isExecutor;
|
||||
|
||||
return (
|
||||
<Modal
|
||||
@ -243,13 +242,8 @@ const ModalEditAddVsp = ({ open, onClose, onSave, onDelete, initialData = null,
|
||||
customSize={'60'}
|
||||
actions={
|
||||
showActions && (
|
||||
<Stack direction={'row'} sx={{ justifyContent: 'space-between', width: '100%' }}>
|
||||
{showDeleteButton && (
|
||||
<DangerOutlinedButton onClick={handleDelete} style={{ height: '2.5rem' }}>
|
||||
Удалить
|
||||
</DangerOutlinedButton>
|
||||
)}
|
||||
{!showDeleteButton && <Box />} {/* Спейсер для выравнивания */}
|
||||
<Stack direction={'row'} sx={{ justifyContent: 'end', width: '100%' }}>
|
||||
|
||||
<Stack spacing={'.5rem'} direction={'row'}>
|
||||
<Button variant='grey' onClick={handleClose} style={{ height: '2.5rem' }} disabled={loading}>
|
||||
Отменить
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user