Skip to content
Snippets Groups Projects
Commit f01a86f9 authored by Julian's avatar Julian
Browse files

Fix linking inbetween statistical views

parent 5c92ef2b
No related branches found
No related tags found
1 merge request!361Resolve "Add statistics page for absences"
Pipeline #193677 failed
......@@ -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>
......
......@@ -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
......
<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 -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment