diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForGroupTab.vue b/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForGroupTab.vue index c23084c3b9bf298082eb48dbe6d218ae8d60861d..f97e7b7f62b4ccee537ccb11a73bfb976c8c48d3 100644 --- a/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForGroupTab.vue +++ b/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForGroupTab.vue @@ -64,6 +64,13 @@ <secondary-action-button i18n-key="alsijil.personal_notes.statistics.person_view_details" icon-text="mdi-open-in-new" + :to="{ + name: 'alsijil.coursebook_statistics', + params: { + personId: item.person.id, + schoolTermId: schoolTerm.id, + }, + }" /> </template> </c-r-u-d-list> diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonCard.vue b/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonCard.vue index ebcb00af0740bc92bc2c4607b09a80c3ceec175d..130b4c9b1a621fecc2f3c0de1f20fdee395c2dd7 100644 --- a/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonCard.vue +++ b/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonCard.vue @@ -11,7 +11,13 @@ :icon="true" icon-text="mdi-open-in-new" i18n-key="" - @click="switchToOwnPage" + :to="{ + name: 'alsijil.coursebook_statistics', + params: { + personId: person.id, + schoolTermId: schoolTerm.id, + }, + }" /> </v-card-title> <v-card-title v-else> @@ -92,19 +98,6 @@ export default { }, }, }, - methods: { - switchToOwnPage() { - this.$router.push({ - name: "alsijil.coursebook_statistics", - params: { - personId: this.person.id, - schoolTermId: this.schoolTerm.id, - }, - // TODO: Add where we came from as get parameter if - // meeting decided that own page. - }); - }, - }, computed: { gridTemplateAreas() { return this.compact diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonPage.vue b/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonPage.vue index 92f85cbd4896d381f56578feb300c2cbb581c090..b372e391767994a10499bfc80b4ba8ba281fa01f 100644 --- a/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonPage.vue +++ b/aleksis/apps/alsijil/frontend/components/coursebook/statistics/StatisticsForPersonPage.vue @@ -1,5 +1,7 @@ <template> - <fullscreen-dialog-page> + <fullscreen-dialog-page + :fallback-url="{ name: 'core.personById', props: { id: personId } }" + > <div class="d-flex" style="gap: 4em"> <!-- TODO: header (close, title, print) --> <!-- TODO: flex-grow-1 does a little & flex-shrink-1 does nothing -->