diff --git a/src/views/SimproV2/ResourceWorker/DialogForm.js b/src/views/SimproV2/ResourceWorker/DialogForm.js index e293ea4..e198a02 100644 --- a/src/views/SimproV2/ResourceWorker/DialogForm.js +++ b/src/views/SimproV2/ResourceWorker/DialogForm.js @@ -40,7 +40,7 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi const [address, setAddress] = useState('') const [divisionId, setDivisionId] = useState('') const [statusResource, setStatusResource] = useState('active') - + const [statusRestriction, setStatusRestriction] = useState(false) useEffect(() => { if (typeDialog === "Edit" || typeDialog === "Set") { console.log("cel data Edit", dataEdit) @@ -112,8 +112,10 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi role_id: roleId, divisi_id: divisionId, address, - status_resource: statusResource + status_resource: statusResource, + status_boundary: statusRestriction } + console.log(data) if (birthDate && birthDate != "") { data['birth_date'] = birthDate; @@ -154,7 +156,8 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi role_id: roleId, divisi_id: divisionId, address, - status_resource: statusResource + status_resource: statusResource, + status_boundary: statusRestriction } if (birthDate && birthDate != "") { @@ -196,42 +199,30 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi const renderForm = () => { return (
)