#146 setup worker tasks tbl on translated statuses of tasks

parent 732d1658
...@@ -22,6 +22,7 @@ import BasicSelect from "../../UI/Select/Select"; ...@@ -22,6 +22,7 @@ import BasicSelect from "../../UI/Select/Select";
import CalendarMonthIcon from '@mui/icons-material/CalendarMonth'; import CalendarMonthIcon from '@mui/icons-material/CalendarMonth';
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp'; import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
import { TaskStatuses } from "../../../helpers/TableTasksHelpers";
const weekDays = ["Вс","Пн","Вт","Ср","Чт","Пт","Сб" ]; const weekDays = ["Вс","Пн","Вт","Ср","Чт","Пт","Сб" ];
...@@ -314,9 +315,11 @@ const TableRowTask= ({ ...@@ -314,9 +315,11 @@ const TableRowTask= ({
<TableCell> <TableCell>
<BasicSelect <BasicSelect
items={[ items={[
{ value: "opened", title: "opened" }, { value: "opened", title: "создано" },
{ value: "done", title: "done" }, { value: "done", title: "выполнено" },
{ value: "failed", title: "failed" }, { value: "failed", title: "просрочено" },
{ value: "progress", title: "в работе" },
{ value: "cancelled", title: "отменено" },
]} ]}
task={task} task={task}
onChange={onChange} onChange={onChange}
...@@ -330,7 +333,7 @@ const TableRowTask= ({ ...@@ -330,7 +333,7 @@ const TableRowTask= ({
{...{ {...{
task, task,
name: "accomplish", name: "accomplish",
value: task.accomplish, value: TaskStatuses[task.accomplish],
user:user user:user
}} }}
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment