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 --> <!-- keep until we unify the dashboard -->
<CoursePanel <CoursePanel
v-if=" v-if="
dashboardStore.currentDashboardConfig.dashboard_type === ['PRAXISBILDNER_DASHBOARD', 'PROGRESS_DASHBOARD'].includes(
'PRAXISBILDNER_DASHBOARD' dashboardStore.currentDashboardConfig.dashboard_type
" )
:course-config="
newDashboardConfigForId(dashboardStore.currentDashboardConfig.id)
"
/>
<CoursePanel
v-else-if="
dashboardStore.currentDashboardConfig.dashboard_type ===
'PROGRESS_DASHBOARD'
" "
:course-config=" :course-config="
newDashboardConfigForId(dashboardStore.currentDashboardConfig.id) newDashboardConfigForId(dashboardStore.currentDashboardConfig.id)