Rework the profile page
Add the accept/refuse for unreg request
This commit is contained in:
		| @ -4,13 +4,12 @@ import i18n from '@/i18n.js' | ||||
|  | ||||
| // Liste des apps | ||||
| import LoginPage from '@/Apps/Login.vue' | ||||
| import Inscription from "@/Apps/Inscription/ManageRequests.vue" | ||||
| import Profil from "@/Apps/Profil.vue" | ||||
| import Courses from "@/Apps/ManageCourses.vue" | ||||
| import Users from "@/Apps/UsersList.vue" | ||||
| import Students from "@/Apps/StudentsList.vue" | ||||
| import AboutStudent from "@/Apps/Inscription/AboutStudent.vue"; | ||||
| import Msg from "@/Apps/Msg.vue" | ||||
| import Payments from "@/Apps/Inscription/PaymentInfo.vue"; | ||||
| import ManageRequests from "@/Apps/Inscription/ManageRequests.vue"; | ||||
|  | ||||
| const apps = { | ||||
| @ -21,6 +20,7 @@ const apps = { | ||||
| 		'/users-list' : Users, | ||||
| 		'/students-list' : Students, | ||||
| 		'/msg' : Msg, | ||||
| 		'/payments': Payments | ||||
| } | ||||
|  | ||||
| const appsList = { | ||||
| @ -32,6 +32,7 @@ const appsList = { | ||||
| 		'ManageCourses': { path: '#/manage-courses', icon: 'fa-book', text: i18n("app.manage.courses") }, | ||||
| 		'StudentsList':{ path: '#/students-list',icon: 'fa-users',text: i18n("app.studentList")}, | ||||
| 		'UsersList':{ path: '#/users-list',icon: 'fa-users',text: i18n("app.users")}, | ||||
| 		'Payments':{path: '#/payments', icon:'fa-users', text:i18n("app.payments")} | ||||
| } | ||||
|  | ||||
| const currentPath = ref(window.location.hash) | ||||
|  | ||||
| @ -34,4 +34,16 @@ export async function getScholarshipReqById(id){ | ||||
|  | ||||
| export async function getAllUnregisters(){ | ||||
|     return restGet("/unregister") | ||||
| } | ||||
|  | ||||
| export async function getUnregisterbyId(id){ | ||||
|     return restGet("/unregister/"+id) | ||||
| } | ||||
|  | ||||
| export async function editUnregReq(id, newstate){ | ||||
|     return restPatch("/unregister/"+id+"/"+newstate) | ||||
| } | ||||
|  | ||||
| export async function getAllPayments(){ | ||||
|     return restGet("/payment") | ||||
| } | ||||
		Reference in New Issue
	
	Block a user