diff --git a/client/src/components/MainNavigationBar.vue b/client/src/components/MainNavigationBar.vue index 00df77bb..eec08156 100644 --- a/client/src/components/MainNavigationBar.vue +++ b/client/src/components/MainNavigationBar.vue @@ -162,7 +162,7 @@ const profileDropdownData = [ Shop diff --git a/client/src/router/index.ts b/client/src/router/index.ts index 72a061a6..5572547a 100644 --- a/client/src/router/index.ts +++ b/client/src/router/index.ts @@ -31,15 +31,16 @@ const router = createRouter({ children: [ { path: 'overview', - component: () => import('@/views/MediaMainView.vue'), + component: () => import('@/views/MediaCenterMainView.vue'), + }, + { + path: 'handlungsfelder/:mediaCategorySlug', + props: true, + component: () => import('@/views/MediaCategoryDetailView.vue'), }, { path: 'handlungsfelder', - component: () => import('@/views/HandlungsfelderOverview.vue'), - }, - { - path: 'handlungsfeld', - component: () => import('@/views/Handlungsfeld.vue'), + component: () => import('@/views/MediaCenterCategoryOverview.vue'), }, { path: 'handlungsfeldlist', diff --git a/client/src/types.ts b/client/src/types.ts index 4e320be2..61143553 100644 --- a/client/src/types.ts +++ b/client/src/types.ts @@ -168,8 +168,15 @@ export interface MediaContentCollection { export interface MediaCategoryPage extends CourseWagtailPage { type: 'media_library.MediaCategoryPage'; + overview_icon: string; introduction_text: string; - description: string; + description_title: string; + description_text: string; + items: { + type: 'item'; + value: string; + id: string; + } course_category: CourseCategory; body: MediaContentCollection[]; } diff --git a/client/src/views/HandlungsfelderOverview.vue b/client/src/views/HandlungsfelderOverview.vue deleted file mode 100644 index fdf8fc3b..00000000 --- a/client/src/views/HandlungsfelderOverview.vue +++ /dev/null @@ -1,104 +0,0 @@ - - - - - diff --git a/client/src/views/Handlungsfeld.vue b/client/src/views/MediaCategoryDetailView.vue similarity index 65% rename from client/src/views/Handlungsfeld.vue rename to client/src/views/MediaCategoryDetailView.vue index 52eacfe3..5c6afd05 100644 --- a/client/src/views/Handlungsfeld.vue +++ b/client/src/views/MediaCategoryDetailView.vue @@ -1,22 +1,19 @@