diff --git a/frontend/src/store/authentication.store.ts b/frontend/src/store/authentication.store.ts index eee2476c..4e29dca8 100644 --- a/frontend/src/store/authentication.store.ts +++ b/frontend/src/store/authentication.store.ts @@ -40,7 +40,9 @@ export const useAuthStore = defineStore('auth', () => { user.value.is_staff, user.value.roles, [], - courses.value ?? [] + courses.value ?? [], + user.value.create_time, + user.value.last_login ); }else if (view.value === 'student') { await getCoursesByStudent(user.value.id); @@ -53,6 +55,8 @@ export const useAuthStore = defineStore('auth', () => { user.value.last_name, user.value.is_staff, user.value.last_enrolled, + user.value.create_time, + user.value.last_login, user.value.id, user.value.roles, courses.value ?? [] @@ -70,7 +74,9 @@ export const useAuthStore = defineStore('auth', () => { user.value.is_staff, user.value.roles, [], - courses.value ?? [] + courses.value ?? [], + user.value.create_time, + user.value.last_login ); } } diff --git a/frontend/src/views/dashboard/DashboardView.vue b/frontend/src/views/dashboard/DashboardView.vue index 5623d83f..8903cf70 100644 --- a/frontend/src/views/dashboard/DashboardView.vue +++ b/frontend/src/views/dashboard/DashboardView.vue @@ -15,14 +15,12 @@ import ProjectCard from "@/components/projects/ProjectCard.vue"; import {useAuthStore} from '@/store/authentication.store.ts'; import {storeToRefs} from 'pinia'; import { computed } from 'vue'; -import { Course } from '@/types/Course'; /* Composable injections */ const {t} = useI18n(); /* Component state */ const allProjects = ref([]); -const allCourses = ref([]); const academicYears = ref<{ label: string; value: number }[]>(); const selectedCoursesYear = ref(); const selectedProjectsYear = ref();