Browse Source

update kanban

pull/1/head
wahyuun 8 months ago
parent
commit
aacceb9530
  1. 5
      src/views/SimproV2/CreatedProyek/DialogGantt.js
  2. 10
      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>{" "}
</> </>
, ,
}, },

10
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)

Loading…
Cancel
Save