Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tyboro2002 committed Mar 27, 2024
1 parent 696a365 commit 99a4d7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/views/courses/CourseView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { t } = useI18n()
onMounted(() => {
getCourseByID(
parseInt(params.courseId as string),
params.courseId as string,
t
);
});
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/views/dashboard/DashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 ^^^^
Expand Down

0 comments on commit 99a4d7a

Please sign in to comment.