From 1c752ac242815b79e3f46855806014bfd4801e67 Mon Sep 17 00:00:00 2001 From: Ewout Verlinde Date: Thu, 11 Apr 2024 22:26:58 +0200 Subject: [PATCH] Better academic year selector, filtering and sorting (#292) * feat: academic year selector, better pagination and filtering composables * chore: added course pagination --- frontend/src/views/courses/SearchCourseView.vue | 5 ++--- frontend/src/views/projects/ProjectView.vue | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/courses/SearchCourseView.vue b/frontend/src/views/courses/SearchCourseView.vue index d561e06b..b311b10f 100644 --- a/frontend/src/views/courses/SearchCourseView.vue +++ b/frontend/src/views/courses/SearchCourseView.vue @@ -9,8 +9,8 @@ import Paginator from 'primevue/paginator'; import Title from '@/components/layout/Title.vue'; import BaseLayout from '@/components/layout/BaseLayout.vue'; import CourseList from '@/components/courses/CourseList.vue'; -import { onMounted } from 'vue'; -import { useCourses } from '@/composables/services/course.service.ts'; +import { onMounted, watch } from 'vue'; +import { useCourses } from '@/composables/services/courses.service.ts'; import { useAuthStore } from '@/store/authentication.store.ts'; import { useFaculty } from '@/composables/services/faculty.service.ts'; import { storeToRefs } from 'pinia'; @@ -19,7 +19,6 @@ import { useFilter } from '@/composables/filters/filter.ts'; import { usePaginator } from '@/composables/filters/paginator.ts'; import { useRoute } from 'vue-router'; import { getCourseFilters } from '@/types/filter/Filter.ts'; -import { getAcademicYears } from '@/types/Course.ts'; /* Composable injections */ const { t } = useI18n(); diff --git a/frontend/src/views/projects/ProjectView.vue b/frontend/src/views/projects/ProjectView.vue index 2f8e25d5..f1bae4cd 100644 --- a/frontend/src/views/projects/ProjectView.vue +++ b/frontend/src/views/projects/ProjectView.vue @@ -1,12 +1,11 @@