From 99a4d7af8d7a3f807f4e5f78e2bebb876bccf11d Mon Sep 17 00:00:00 2001 From: tyboro2002 Date: Wed, 27 Mar 2024 12:17:54 +0100 Subject: [PATCH] chore: cleanup --- frontend/src/views/courses/CourseView.vue | 2 +- frontend/src/views/dashboard/DashboardView.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/courses/CourseView.vue b/frontend/src/views/courses/CourseView.vue index e6151edc..5646e659 100644 --- a/frontend/src/views/courses/CourseView.vue +++ b/frontend/src/views/courses/CourseView.vue @@ -14,7 +14,7 @@ const { t } = useI18n() onMounted(() => { getCourseByID( - parseInt(params.courseId as string), + params.courseId as string, t ); }); diff --git a/frontend/src/views/dashboard/DashboardView.vue b/frontend/src/views/dashboard/DashboardView.vue index 9dcfa557..2f839ff9 100644 --- a/frontend/src/views/dashboard/DashboardView.vue +++ b/frontend/src/views/dashboard/DashboardView.vue @@ -34,21 +34,21 @@ const vaknaam = ref(''); const executeCode = () => { // Put your code here that you want to execute console.log('Button clicked! Code executed.'); - createCourse({name: vaknaam.value, academic_startyear:2023}); + createCourse({name: vaknaam.value, academic_startyear:2023}, t); }; // Function to handle form submission const handleSubmit = () => { // Perform actions here, such as sending the input value to a backend API console.log('Submitted value:', idValue.value); - studentJoinCourse(idValue.value, "1"); + studentJoinCourse(idValue.value, "1", t); }; // Function to handle form submission const handleDelete = () => { // Perform actions here, such as sending the input value to a backend API console.log('Submitted value:', idValue.value); - deleteCourse(idValue.value); + deleteCourse(idValue.value, t); }; // test code ^^^^