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

Fix linter

parent b029a3bc
No related branches found
No related tags found
1 merge request!361Resolve "Add statistics page for absences"
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#[`extraMarks.${index}.count`]="{ item }" #[`extraMarks.${index}.count`]="{ item }"
> >
<extra-mark-chip <extra-mark-chip
:key="extraMark.id"
:extra-mark="extraMark" :extra-mark="extraMark"
only-show-count only-show-count
dense dense
...@@ -34,6 +35,7 @@ ...@@ -34,6 +35,7 @@
#[`absenceReasons.${index}.count`]="{ item }" #[`absenceReasons.${index}.count`]="{ item }"
> >
<absence-reason-chip <absence-reason-chip
:key="absenceReason.id"
:absence-reason="absenceReason" :absence-reason="absenceReason"
only-show-count only-show-count
dense dense
...@@ -45,6 +47,7 @@ ...@@ -45,6 +47,7 @@
/> />
</template> </template>
<!-- eslint-disable-next-line vue/valid-v-slot -->
<template #person.fullName="{ item }"> <template #person.fullName="{ item }">
<person-chip :person="item.person" /> <person-chip :person="item.person" />
</template> </template>
......
...@@ -54,7 +54,9 @@ ...@@ -54,7 +54,9 @@
{{ extraMark.name }} {{ extraMark.name }}
</v-chip> </v-chip>
</v-list-item-title> </v-list-item-title>
<v-list-item-subtitle> item.personalNote </v-list-item-subtitle> <v-list-item-subtitle>
{{ item.personalNote }}
</v-list-item-subtitle>
</v-list-item-content> </v-list-item-content>
</v-list-item> </v-list-item>
<v-divider></v-divider> <v-divider></v-divider>
......
<template> <template>
<v-skeleton-loader v-if="loading" type="card" /> <v-skeleton-loader v-if="loading" type="card" />
<v-card v-else class="text-center"> <v-card v-else class="text-center">
<v-card-text class="d-flex flex-column align-center justify-center fill-height"> <v-card-text
class="d-flex flex-column align-center justify-center fill-height"
>
<div class="text-h2"> <div class="text-h2">
{{ tardinessCount }} {{ tardinessCount }}
</div> </div>
...@@ -16,7 +18,9 @@ ...@@ -16,7 +18,9 @@
</div> </div>
<div> <div>
<v-icon small>mdi-diameter-variant</v-icon> <v-icon small>mdi-diameter-variant</v-icon>
{{ $tc("time.minutes_n", (tardinessSum / tardinessCount).toFixed(2)) }} {{
$tc("time.minutes_n", (tardinessSum / tardinessCount).toFixed(2))
}}
</div> </div>
</div> </div>
</v-card-text> </v-card-text>
......
...@@ -16,7 +16,10 @@ export const collectionItems = { ...@@ -16,7 +16,10 @@ export const collectionItems = {
corePersonWidgets: [ corePersonWidgets: [
{ {
key: "core-person-widgets", key: "core-person-widgets",
component: () => import("./components/coursebook/statistics/StatisticsForPersonCard.vue"), component: () =>
import(
"./components/coursebook/statistics/StatisticsForPersonCard.vue"
),
shouldDisplay: (person, currentSchoolTerm) => currentSchoolTerm != null, shouldDisplay: (person, currentSchoolTerm) => currentSchoolTerm != null,
colProps: { colProps: {
cols: 12, cols: 12,
......
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