From 1fcc0d638a51c18c33c5d8956a40b90efc94a330 Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Wed, 27 Mar 2024 01:31:04 +0100
Subject: [PATCH] Open documentation dialog when clicking on teachers or
 subjects

---
 .../coursebook/documentation/LessonInformation.vue     | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue b/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue
index cd1bb8d0e..172ab1549 100644
--- a/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue
+++ b/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue
@@ -19,12 +19,20 @@ import PersonChip from "aleksis.core/components/person/PersonChip.vue";
       {{ documentation.course?.name }}
     </span>
     <div :class="{ 'd-flex align-center flex-wrap gap': true, 'justify-center': largeGrid }">
-      <person-chip v-for="teacher in documentation.teachers" :person="teacher" />
+      <person-chip
+        v-for="teacher in documentation.teachers"
+        :person="teacher"
+        no-link
+        v-bind="compact ? dialogActivator.attrs : {}"
+        v-on="compact ? dialogActivator.on : {}"
+      />
     </div>
     <subject-chip
       v-if="documentation.subject"
       :subject="documentation.subject"
       class="subject"
+      v-bind="compact ? dialogActivator.attrs : {}"
+      v-on="compact ? dialogActivator.on : {}"
     />
   </div>
 </template>
-- 
GitLab