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>
|
</Paper>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Group justify="flex-end" mt="md">
|
{/* Футер с кнопками и выводом ошибки */}
|
||||||
<Button variant="default" onClick={onClose} disabled={isSubmitting}>
|
<Group justify="space-between" mt="md" align="center" wrap="nowrap">
|
||||||
Отмена
|
<Box style={{ flex: 1, paddingRight: 16 }}>
|
||||||
</Button>
|
{Object.keys(form.errors).length > 0 && (
|
||||||
<Button type="submit" loading={isSubmitting}>
|
<Group gap={6} wrap="nowrap">
|
||||||
{isEditMode ? 'Сохранить' : 'Создать'}
|
<IconAlertCircle
|
||||||
</Button>
|
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>
|
</Group>
|
||||||
</Stack>
|
</Stack>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue