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">
<Button size={"sm"} color='primary'><i className="fa fa-gears"></i></Button>
</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 = {
columns: [
{
name: "created_by",
name: "created_by_id",
logic_operator: "IN",
value: hierarchy,
operator: "AND"
@ -261,11 +261,9 @@ const Kanban = ({ params, ...props }) => {
orders: { columns: ["id"], ascending: false },
};
if (parseInt(role_id) !== 1) {
payload["columns"] = [
{ name: "id", logic_operator: "=", value: project, operator: "AND" },
];
}
// if (parseInt(role_id) !== 1) {
// payload.columns.push( { name: "id", logic_operator: "=", value: project, operator: "AND" });
// }
const result = await axios
.post(PROYEK_SEARCH, payload, HEADER)

Loading…
Cancel
Save