Commit ba223fa189f9312bc86ab45c2a8a71be5e15fe7d
1 parent
200c2d1717
Exists in
master
and in
3 other branches
implement change status in student and teacher
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/pages/Students/students.vue
... | ... | @@ -2374,12 +2374,13 @@ export default { |
2374 | 2374 | http() |
2375 | 2375 | .put("/suspendStudentAccount", suspendStudentData) |
2376 | 2376 | .then(response => { |
2377 | - this.findStudents()(); | |
2377 | + this.findStudents(); | |
2378 | 2378 | this.text = response.data.message; |
2379 | 2379 | this.snackbar = true; |
2380 | 2380 | }) |
2381 | 2381 | .catch(error => { |
2382 | 2382 | // console.log(error.response.data.data); |
2383 | + this.snackbar = true; | |
2383 | 2384 | this.text = error.response.data.message; |
2384 | 2385 | }); |
2385 | 2386 | } | ... | ... |