|
|
|
@ -27,6 +27,7 @@ const DialogHierarchy = ({ openDialog, closeDialog, toggleDialog, idTask, proyek
|
|
|
|
|
|
|
|
|
|
const [id, setId] = useState(0) |
|
|
|
|
const [parentId, setParentId] = useState(0) |
|
|
|
|
const [parentName, setParentName] = useState(null) |
|
|
|
|
const [dataGantt, setDataGantt] = useState([]) |
|
|
|
|
const [typeDialog, setTypeDialog] = useState("add") |
|
|
|
|
const [openDialogForm, setOpenDialogForm] = useState(false) |
|
|
|
@ -98,8 +99,9 @@ const DialogHierarchy = ({ openDialog, closeDialog, toggleDialog, idTask, proyek
|
|
|
|
|
setOpenDialogFormGantt(true) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleViewGant = (id) => { |
|
|
|
|
const handleViewGant = (id, name) => { |
|
|
|
|
setParentId(id) |
|
|
|
|
setParentName(name) |
|
|
|
|
setOpenDialogGantt(true) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -196,7 +198,7 @@ const DialogHierarchy = ({ openDialog, closeDialog, toggleDialog, idTask, proyek
|
|
|
|
|
<Button size={"sm"} color='primary' onClick={() => handleAddGant(text.id)}><i className="fa fa-gears"></i></Button> |
|
|
|
|
</Tooltip>{" "} |
|
|
|
|
{text.dataGantt && (<Tooltip title="Detail Gantt"> |
|
|
|
|
<Button size={"sm"} color='info' onClick={() => handleViewGant(text.id)}><i className="fa fa-info"></i></Button> |
|
|
|
|
<Button size={"sm"} color='info' onClick={() => handleViewGant(text.id, text.name)}><i className="fa fa-info"></i></Button> |
|
|
|
|
</Tooltip>)} |
|
|
|
|
</> |
|
|
|
|
, |
|
|
|
@ -310,6 +312,7 @@ const DialogHierarchy = ({ openDialog, closeDialog, toggleDialog, idTask, proyek
|
|
|
|
|
openDialog={openDialogGantt} |
|
|
|
|
closeDialog={closeDialogGantt} |
|
|
|
|
hierarchyId={parentId} |
|
|
|
|
hierarchyName={parentName} |
|
|
|
|
idTask={idTask} |
|
|
|
|
/> |
|
|
|
|
<DialogFormGantt |
|
|
|
|