diff --git a/aleksis/apps/cursus/frontend/components/SubjectChip.vue b/aleksis/apps/cursus/frontend/components/SubjectChip.vue index a341d1873303ed81aa5d5484ea38f213e30f10d8..d92ff834103440a48283f04119e5fa0db9e0c607 100644 --- a/aleksis/apps/cursus/frontend/components/SubjectChip.vue +++ b/aleksis/apps/cursus/frontend/components/SubjectChip.vue @@ -1,6 +1,7 @@ <script> export default { name: "SubjectChip", + extends: "v-chip", props: { subject: { type: Object, @@ -21,7 +22,12 @@ export default { </script> <template> - <v-chip :color="subject.colourBg" :text-color="subject.colourFg"> + <v-chip + v-bind="$attrs" + v-on="$listeners" + :color="subject.colourBg" + :text-color="subject.colourFg" + > {{ shortName ? subject.shortName : subject.name }} <v-icon right v-if="appendIcon">{{ appendIcon }}</v-icon> </v-chip>