#90 added taskcopyTypes and remove of edit copytask option in my tasks

parent 85008743
...@@ -41,8 +41,9 @@ router.post("/make-copy", async(req:Request, res:Response):Promise<Response>=>{ ...@@ -41,8 +41,9 @@ router.post("/make-copy", async(req:Request, res:Response):Promise<Response>=>{
} ) } )
/** change date time of copy of task in calendar view */ /** change date time of copy of task in calendar view */
router.put("/change-copy", authAuthorOrExecutorOfTask, async(req:Request, res: Response):Promise<Response>=>{ router.put("/change-copy/:dateTimeTaskId", authAuthorOrExecutorOfTask, async(req:Request, res: Response):Promise<Response>=>{
const {executorStatus, dateTimeTaskId, taskId, dateTimeStart, dateTimeDue, description, title, priority} = req.body const {dateTimeTaskId} = req.params
const {executorStatus, taskId, dateTimeStart, dateTimeDue, description, title, priority} = req.body
const dateTimeTask = await dataSource const dateTimeTask = await dataSource
.createQueryBuilder() .createQueryBuilder()
.select('dateTimeTask') .select('dateTimeTask')
......
...@@ -31,7 +31,7 @@ const TableRowTask= ({ ...@@ -31,7 +31,7 @@ const TableRowTask= ({
deleteHandle, deleteHandle,
handleEditTask, handleEditTask,
deleteDateTimeTask, deleteDateTimeTask,
handleEditDateTimeTask, // handleEditDateTimeTask,
onChange, onChange,
onModalOpen, onModalOpen,
onProjectChange, onProjectChange,
...@@ -339,7 +339,7 @@ const TableRowTask= ({ ...@@ -339,7 +339,7 @@ const TableRowTask= ({
</TableCell> </TableCell>
{/* Edit option datetimeTask */} {/* Edit option datetimeTask */}
<TableCell style={{width:'0%'}}> {/* <TableCell style={{width:'0%'}}>
<Tooltip title="Редактировать Копию"> <Tooltip title="Редактировать Копию">
{task.isEditMode ? ( {task.isEditMode ? (
<IconButton <IconButton
...@@ -360,7 +360,7 @@ const TableRowTask= ({ ...@@ -360,7 +360,7 @@ const TableRowTask= ({
</IconButton> </IconButton>
)} )}
</Tooltip> </Tooltip>
</TableCell > </TableCell > */}
{/* delete option datetimeTask */} {/* delete option datetimeTask */}
{task.author.id===user.id ? {task.author.id===user.id ?
......
...@@ -21,3 +21,7 @@ export const DELETE_TASK_SUCCESS = "DELETE_TASK_SUCCESS"; ...@@ -21,3 +21,7 @@ export const DELETE_TASK_SUCCESS = "DELETE_TASK_SUCCESS";
export const DELETE_TASK_FAILURE = "DELETE_TASK_FAILURE"; export const DELETE_TASK_FAILURE = "DELETE_TASK_FAILURE";
export const EDIT_CALENDAR_TASK = "EDIT_CALENDAR_TASK"; export const EDIT_CALENDAR_TASK = "EDIT_CALENDAR_TASK";
export const DELETE_COPYTASK_REQUEST = "DELETE_TASK_REQUEST";
export const DELETE_COPYTASK_SUCCESS = "DELETE_TASK_SUCCESS";
export const DELETE_COPYTASK_FAILURE = "DELETE_TASK_FAILURE";
\ No newline at end of file
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