Skip to content

Commit

Permalink
Merge branch 'teacher-view' of github.com:SELab-2/UGent-7 into teache…
Browse files Browse the repository at this point in the history
…r-view
  • Loading branch information
tyboro2002 committed Mar 31, 2024
2 parents 233f1c0 + dc64dcf commit f0d50c0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/src/store/authentication.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 ?? []
Expand All @@ -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
);
}
}
Expand Down

0 comments on commit f0d50c0

Please sign in to comment.