Refactor dashboard page

This commit is contained in:
Christian Cueni 2024-04-16 07:27:34 +02:00
parent dc6c645c46
commit 41c48bed9d
1 changed files with 3 additions and 11 deletions

View File

@ -72,17 +72,9 @@ function newDashboardConfigForId(id: string): DashboardCourseConfigType | undefi
<!-- keep until we unify the dashboard -->
<CoursePanel
v-if="
dashboardStore.currentDashboardConfig.dashboard_type ===
'PRAXISBILDNER_DASHBOARD'
"
:course-config="
newDashboardConfigForId(dashboardStore.currentDashboardConfig.id)
"
/>
<CoursePanel
v-else-if="
dashboardStore.currentDashboardConfig.dashboard_type ===
'PROGRESS_DASHBOARD'
['PRAXISBILDNER_DASHBOARD', 'PROGRESS_DASHBOARD'].includes(
dashboardStore.currentDashboardConfig.dashboard_type
)
"
:course-config="
newDashboardConfigForId(dashboardStore.currentDashboardConfig.id)