Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-158
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-158
2022-158
Commits
2b8ad4c1
Commit
2b8ad4c1
authored
Oct 04, 2022
by
Thushara Thiwanka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CREATE: delete assignments integrated
parent
eb339ddb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
backend/database.db
backend/database.db
+0
-0
frontend/src/pages/ManageAssignments.js
frontend/src/pages/ManageAssignments.js
+2
-2
No files found.
backend/database.db
View file @
2b8ad4c1
No preview for this file type
frontend/src/pages/ManageAssignments.js
View file @
2b8ad4c1
...
...
@@ -47,7 +47,7 @@ const ManageAssignments = () => {
className
=
"
action-btn x
"
onClick
=
{()
=>
{
if
(
window
.
confirm
(
"
Are you sure to delete this assignment?
"
))
{
deleteHandler
(
item
.
_id
,
item
.
username
);
deleteHandler
(
item
.
id
);
}
}}
>
...
...
@@ -86,7 +86,7 @@ const ManageAssignments = () => {
}
};
const
deleteHandler
=
async
(
id
,
username
)
=>
{
const
deleteHandler
=
async
id
=>
{
try
{
const
res
=
await
axios
.
delete
(
`assignments/
${
id
}
`
);
...
...
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