Browse Source

update kanban

pull/1/head
wahyuun 9 months ago
parent
commit
aacceb9530
  1. 5
      src/views/SimproV2/CreatedProyek/DialogGantt.js
  2. 12
      src/views/SimproV2/Kanban/index.js

5
src/views/SimproV2/CreatedProyek/DialogGantt.js

@ -150,6 +150,11 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName
<Tooltip title="Gantt"> <Tooltip title="Gantt">
<Button size={"sm"} color='primary'><i className="fa fa-gears"></i></Button> <Button size={"sm"} color='primary'><i className="fa fa-gears"></i></Button>
</Tooltip></Link>{" "} </Tooltip></Link>{" "}
<Link to={`/kanban/${idTask}/${text.id}`}>
<Tooltip title="Kanban">
<Button id="kanban" className="kanban" name="kanban" size={"sm"} color='primary'><i className="fa fa-calendar"></i></Button>
</Tooltip>
</Link>{" "}
</> </>
, ,
}, },

12
src/views/SimproV2/Kanban/index.js

@ -240,7 +240,7 @@ const Kanban = ({ params, ...props }) => {
const payload = { const payload = {
columns: [ columns: [
{ {
name: "created_by", name: "created_by_id",
logic_operator: "IN", logic_operator: "IN",
value: hierarchy, value: hierarchy,
operator: "AND" operator: "AND"
@ -261,11 +261,9 @@ const Kanban = ({ params, ...props }) => {
orders: { columns: ["id"], ascending: false }, orders: { columns: ["id"], ascending: false },
}; };
if (parseInt(role_id) !== 1) { // if (parseInt(role_id) !== 1) {
payload["columns"] = [ // payload.columns.push( { name: "id", logic_operator: "=", value: project, operator: "AND" });
{ name: "id", logic_operator: "=", value: project, operator: "AND" }, // }
];
}
const result = await axios const result = await axios
.post(PROYEK_SEARCH, payload, HEADER) .post(PROYEK_SEARCH, payload, HEADER)
@ -435,7 +433,7 @@ const Kanban = ({ params, ...props }) => {
} }
} }
// Board // Board
const handleCloseDialogBoard = (type, data) => { const handleCloseDialogBoard = (type, data) => {
if (type === "save") { if (type === "save") {

Loading…
Cancel
Save