+
+ if (data.index === -1) {
+ await postListFormJsonRow(data.id, input)
+ } else {
+ await putListFormJsonRow(data.id, input)
+ }
+ toast.push(
+
+ {data.index === -1 ? 'Kayıt eklendi' : 'Kayıt güncellendi'}
+ ,
+ { placement: 'top-end' },
+ )
+ handleClose()
+ } catch (error: any) {
+ toast.push(
+
+ Hata
+ {error}
+ ,
+ { placement: 'top-end' },
+ )
+ } finally {
+ setSubmitting(false)
+ }
+ }}
+ >
+ {({ touched, errors, values, isSubmitting }) => (
+
+ )}
+
)}
{data.operation === 'delete' && (
- <>
-
Delete
-
Silmek istediğinize emin misiniz?
-
{
- setSubmitting(true)
- try {
- await deleteListFormJsonRow(data.id, data.tabName, values.index)
- toast.push(Kayıt silindi )
- handleClose()
- } catch (error: any) {
- toast.push(
-
- Hata
- {error}
- ,
- { placement: 'top-end' },
- )
- } finally {
- setSubmitting(false)
- }
- }}
- >
- {({ isSubmitting }) => (
-
- )}
-
- >
+
{
+ setSubmitting(true)
+ try {
+ await deleteListFormJsonRow(data.id, data.tabName, values.index)
+ toast.push(Kayıt silindi )
+ handleClose()
+ } catch (error: any) {
+ toast.push(
+
+ Hata
+ {error}
+ ,
+ { placement: 'top-end' },
+ )
+ } finally {
+ setSubmitting(false)
+ }
+ }}
+ >
+ {({ isSubmitting }) => (
+
+ )}
+
)}
)
diff --git a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSeries.tsx b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSeries.tsx
index 730d3a2..9042cfa 100644
--- a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSeries.tsx
+++ b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogSeries.tsx
@@ -3,7 +3,6 @@ import {
Card,
Checkbox,
Dialog,
- FormContainer,
FormItem,
Input,
Notification,
@@ -132,11 +131,11 @@ function JsonRowOpDialogSeries({
preventScroll={true}
onClose={handleClose}
onRequestClose={handleClose}
+ width={900}
+ height="90vh"
>
{(data.operation === 'create' || data.operation === 'update') && (
- <>
-
{data.index === -1 ? 'Add' : 'Update'}
-
{({ touched, errors, values, isSubmitting }) => (
-