diff --git a/client/src/pages/cockpit/CockpitIndexPage.vue b/client/src/pages/cockpit/CockpitIndexPage.vue index b212d437..98bb82e8 100644 --- a/client/src/pages/cockpit/CockpitIndexPage.vue +++ b/client/src/pages/cockpit/CockpitIndexPage.vue @@ -2,12 +2,20 @@ import ItPersonRow from "@/components/ui/ItPersonRow.vue"; import ItProgress from "@/components/ui/ItProgress.vue"; import { useCockpitStore } from "@/stores/cockpit"; +import { useCompetenceStore } from "@/stores/competence"; import * as log from "loglevel"; import { ref } from "vue"; log.debug("CockpitIndexPage created"); const cockpitStore = useCockpitStore(); +const competenceStore = useCompetenceStore(); + +function userCountStatus(userId: number) { + return competenceStore.calcStatusCount( + competenceStore.flatPerformanceCriteria(userId) + ); +} const data = { circles: ["KMU Teil 1", "KMU Teil 2", "3-Säuli-Prinzip"], @@ -107,19 +115,25 @@ function setActiveCircle(index: number) { -

2

+

+ {{ userCountStatus(csu.user_id).fail }} +

  • -

    5

    +

    + {{ userCountStatus(csu.user_id).success }} +

  • -

    5

    +

    + {{ userCountStatus(csu.user_id).unknown }} +

  • diff --git a/client/src/pages/cockpit/CockpitParentPage.vue b/client/src/pages/cockpit/CockpitParentPage.vue index 676b0bf2..bd68f755 100644 --- a/client/src/pages/cockpit/CockpitParentPage.vue +++ b/client/src/pages/cockpit/CockpitParentPage.vue @@ -1,5 +1,6 @@