Browse Source

save update from server

pull/2/head
root 1 year ago
parent
commit
bc9b855b75
  1. BIN
      src/views/SimproV2/CreatedProyek/.DialogHierarchy.js.swp
  2. 2
      src/views/SimproV2/CreatedProyek/DialogHierarchy.js
  3. 14
      src/views/SimproV2/CreatedProyek/ImportActivity/index.js
  4. 2
      src/views/SimproV2/CreatedProyek/index.js

BIN
src/views/SimproV2/CreatedProyek/.DialogHierarchy.js.swp

Binary file not shown.

2
src/views/SimproV2/CreatedProyek/DialogHierarchy.js

@ -47,7 +47,7 @@ const DialogHierarchy = ({ openDialog, closeDialog, toggleDialog, idTask, proyek
setLoading(true); setLoading(true);
getdataHierarchy(); getdataHierarchy();
} }
}, [saveHierarchy, idTask, openDialog, closeDialog, openDialogFormGantt]) }, [idTask, openDialog, closeDialog, openDialogFormGantt])
useEffect(() => { useEffect(() => {
if (!openDialog) { if (!openDialog) {

14
src/views/SimproV2/CreatedProyek/ImportActivity/index.js

@ -9,13 +9,13 @@ import './table.css';
import { BASE_OSPRO, ASSIGN_HR_PROJECT_SEARCH } from '../../../../const/ApiConst'; import { BASE_OSPRO, ASSIGN_HR_PROJECT_SEARCH } from '../../../../const/ApiConst';
import { Prompt } from 'react-router-dom'; import { Prompt } from 'react-router-dom';
// //
const config = { //const config = {
headers: // headers:
{ // {
Authorization: `Bearer ${token}`, // Authorization: `Bearer ${token}`,
"Content-type": `application/json` // "Content-type": `application/json`
} // }
}; //};
//const token = window.localStorage.getItem('token'); //const token = window.localStorage.getItem('token');
const token = localStorage.getItem("token"); const token = localStorage.getItem("token");
const HEADER = { const HEADER = {

2
src/views/SimproV2/CreatedProyek/index.js

@ -304,7 +304,7 @@ const CreatedProyek = ({ params, ...props }) => {
const getDataProyek = async () => { const getDataProyek = async () => {
let start = 0; let start = 0;
let hierarchy = []; let hierarchy = [];
hierarchy.push(JSON.parse(localStorage.getItem("hierarchy"))); //hierarchy.push(JSON.parse(localStorage.getItem("hierarchy")));
if (currentPage !== 1 && currentPage > 1) { if (currentPage !== 1 && currentPage > 1) {
start = currentPage * rowsPerPage - rowsPerPage; start = currentPage * rowsPerPage - rowsPerPage;
} }

Loading…
Cancel
Save