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