From db46ad3eea65a9b9ab3456b080674acf110aa4d6 Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Thu, 17 Oct 2024 21:59:02 +0200
Subject: [PATCH] Inject statistiscs widget on person detail page

---
 aleksis/apps/alsijil/frontend/index.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/aleksis/apps/alsijil/frontend/index.js b/aleksis/apps/alsijil/frontend/index.js
index e63cfc252..5aabbc9cc 100644
--- a/aleksis/apps/alsijil/frontend/index.js
+++ b/aleksis/apps/alsijil/frontend/index.js
@@ -13,6 +13,18 @@ export const collectionItems = {
         import("./components/coursebook/statistics/StatisticsForGroupTab.vue"),
     },
   ],
+  corePersonWidgets: [
+    {
+      key: "core-person-widgets",
+      component: () => import("./components/coursebook/statistics/StatisticsForPersonCard.vue"),
+      shouldDisplay: (person, currentSchoolTerm) => currentSchoolTerm != null,
+      colProps: {
+        cols: 12,
+        md: 6,
+        lg: 4,
+      },
+    },
+  ],
 };
 
 export default {
-- 
GitLab