Updated flow node form
Deploy Frontend / build-and-deploy (push) Successful in 1m6s
Details
Deploy Frontend / build-and-deploy (push) Successful in 1m6s
Details
This commit is contained in:
parent
4e8784c706
commit
89c9ecd7b4
|
|
@ -803,13 +803,31 @@ export default function FlowNodeEditModal({
|
|||
</Paper>
|
||||
)}
|
||||
|
||||
<Group justify="flex-end" mt="md">
|
||||
<Button variant="default" onClick={onClose} disabled={isSubmitting}>
|
||||
Отмена
|
||||
</Button>
|
||||
<Button type="submit" loading={isSubmitting}>
|
||||
{isEditMode ? 'Сохранить' : 'Создать'}
|
||||
</Button>
|
||||
{/* Футер с кнопками и выводом ошибки */}
|
||||
<Group justify="space-between" mt="md" align="center" wrap="nowrap">
|
||||
<Box style={{ flex: 1, paddingRight: 16 }}>
|
||||
{Object.keys(form.errors).length > 0 && (
|
||||
<Group gap={6} wrap="nowrap">
|
||||
<IconAlertCircle
|
||||
size={18}
|
||||
color="var(--mantine-color-red-6)"
|
||||
style={{ flexShrink: 0 }}
|
||||
/>
|
||||
<Text size="sm" c="red" fw={500} style={{ lineHeight: 1.2 }}>
|
||||
{Object.values(form.errors)[0] as string}
|
||||
</Text>
|
||||
</Group>
|
||||
)}
|
||||
</Box>
|
||||
|
||||
<Group justify="flex-end" wrap="nowrap">
|
||||
<Button variant="default" onClick={onClose} disabled={isSubmitting}>
|
||||
Отмена
|
||||
</Button>
|
||||
<Button type="submit" loading={isSubmitting}>
|
||||
{isEditMode ? 'Сохранить' : 'Создать'}
|
||||
</Button>
|
||||
</Group>
|
||||
</Group>
|
||||
</Stack>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Reference in New Issue