Skip to content
Snippets Groups Projects
Commit b4ff9153 authored by robinwilliam.hundt's avatar robinwilliam.hundt
Browse files

Statistics only renders when data is loaded

parent 5ce9e509
No related branches found
No related tags found
1 merge request!83Fix subscription list automatic login statistics
Pipeline #
...@@ -3,21 +3,23 @@ ...@@ -3,21 +3,23 @@
<v-card-title> <v-card-title>
<span class="title">Statistics</span> <span class="title">Statistics</span>
</v-card-title> </v-card-title>
<ul class="inline-list mx-3"> <div v-if="loaded">
<li>Submissions per student: <span>{{statistics.submissions_per_student}}</span></li> <ul class="inline-list mx-3">
<li>Submissions per type: <span>{{statistics.submissions_per_type}}</span></li> <li>Submissions per student: <span>{{statistics.submissions_per_student}}</span></li>
<li>Curr. mean score: <span>{{statistics.current_mean_score.toFixed(2)}}</span></li> <li>Submissions per type: <span>{{statistics.submissions_per_type}}</span></li>
</ul> <li>Curr. mean score: <span>{{statistics.current_mean_score.toFixed(2)}}</span></li>
<v-divider class="mx-2 my-2"></v-divider> </ul>
<div v-for="(progress, index) in statistics.submission_type_progress" :key="index"> <v-divider class="mx-2 my-2"></v-divider>
<v-card-title class="py-0"> <div v-for="(progress, index) in statistics.submission_type_progress" :key="index">
{{progress.name}} <v-card-title class="py-0">
</v-card-title> {{progress.name}}
<div class="mx-3"> </v-card-title>
<v-progress-linear <div class="mx-3">
v-model="progress.percentage" <v-progress-linear
:color="progress.percentage === 100 ? 'green' : 'blue'" v-model="progress.percentage"
/> :color="progress.percentage === 100 ? 'green' : 'blue'"
/>
</div>
</div> </div>
</div> </div>
</v-card> </v-card>
......
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