Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Евгений Положенцев
planner-team-one
Commits
51db4527
Commit
51db4527
authored
Dec 07, 2022
by
Евгений Положенцев
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#90
added taskcopyTypes and remove of edit copytask option in my tasks
parent
85008743
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
copyTasks.ts
planner-api/src/routers/copyTasks.ts
+4
-3
TableRowTask.js
...components/MyTasksCompoments/TableRowTask/TableRowTask.js
+3
-3
tasksTypes.js
planner-front/src/store/actionTypes/tasksTypes.js
+5
-1
No files found.
planner-api/src/routers/copyTasks.ts
View file @
51db4527
...
...
@@ -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'
)
...
...
planner-front/src/components/MyTasksCompoments/TableRowTask/TableRowTask.js
View file @
51db4527
...
...
@@ -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
?
...
...
planner-front/src/store/actionTypes/tasksTypes.js
View file @
51db4527
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment