diff --git a/client/src/pages/cockpit/CockpitIndexPage.vue b/client/src/pages/cockpit/CockpitIndexPage.vue index ff5a899e..ae65a95a 100644 --- a/client/src/pages/cockpit/CockpitIndexPage.vue +++ b/client/src/pages/cockpit/CockpitIndexPage.vue @@ -130,7 +130,13 @@ function setActiveClasses(id: number) { diagram-type="horizontalSmall" > -
Einstieg
+
+ {{ title }} +
diff --git a/client/src/stores/cockpit.ts b/client/src/stores/cockpit.ts index d5e333af..52ac3c74 100644 --- a/client/src/stores/cockpit.ts +++ b/client/src/stores/cockpit.ts @@ -21,6 +21,10 @@ export const useCockpitStore = defineStore({ }, getters: { circles: (state) => state.cockpitSessionUser?.circles, + selectedCirclesTitles: (state) => + state.cockpitSessionUser?.circles + .filter((circle) => state.selectedCircles.indexOf(circle.id) > -1) + .map((circle) => circle.title), }, actions: { async loadCourseSessionUsers(courseSlug: string, reload = false) {