Compare commits

..

No commits in common. "1843ad68d4488f96f6b8326d670b162d7da94670" and "9b526901129f3afc82c88a50741587627d8aa8c8" have entirely different histories.

3 changed files with 10 additions and 4 deletions

View File

@ -113,7 +113,7 @@ const AuditLogsFilters = ({
getOptionLabel={(option) => option.title || option.name || ''} getOptionLabel={(option) => option.title || option.name || ''}
value={selectedSsp} value={selectedSsp}
onChange={(event, newValue) => onSspChange(newValue)} onChange={(event, newValue) => onSspChange(newValue)}
renderInput={(params) => <TextField {...params} placeholder='Все ССП/РФ' />} renderInput={(params) => <TextField {...params} placeholder='Все ССП' />}
/> />
</FilterFieldWrapper> </FilterFieldWrapper>

View File

@ -47,7 +47,7 @@ const DictVspFilters = ({ ssps, selectedSsp = null, onSspChange }) => {
value={selectedSsp} value={selectedSsp}
getOptionKey={(option) => option.id || option.name || option.title} getOptionKey={(option) => option.id || option.name || option.title}
onChange={(event, newValue) => onSspChange(newValue)} onChange={(event, newValue) => onSspChange(newValue)}
renderInput={(params) => <TextField {...params} placeholder='Все ССП/РФ' />} renderInput={(params) => <TextField {...params} placeholder='Все ССП' />}
/> />
</Box> </Box>
</Stack> </Stack>

View File

@ -233,6 +233,7 @@ const ModalEditAddVsp = ({ open, onClose, onSave, onDelete, initialData = null,
const selectedSsp = ssps.find((ssp) => ssp.id === formData.ssp_id) || null; const selectedSsp = ssps.find((ssp) => ssp.id === formData.ssp_id) || null;
const showActions = true; const showActions = true;
const showDeleteButton = !isExecutor;
return ( return (
<Modal <Modal
@ -242,8 +243,13 @@ const ModalEditAddVsp = ({ open, onClose, onSave, onDelete, initialData = null,
customSize={'60'} customSize={'60'}
actions={ actions={
showActions && ( showActions && (
<Stack direction={'row'} sx={{ justifyContent: 'end', width: '100%' }}> <Stack direction={'row'} sx={{ justifyContent: 'space-between', width: '100%' }}>
{showDeleteButton && (
<DangerOutlinedButton onClick={handleDelete} style={{ height: '2.5rem' }}>
Удалить
</DangerOutlinedButton>
)}
{!showDeleteButton && <Box />} {/* Спейсер для выравнивания */}
<Stack spacing={'.5rem'} direction={'row'}> <Stack spacing={'.5rem'} direction={'row'}>
<Button variant='grey' onClick={handleClose} style={{ height: '2.5rem' }} disabled={loading}> <Button variant='grey' onClick={handleClose} style={{ height: '2.5rem' }} disabled={loading}>
Отменить Отменить