From c879fc584fd9483dbdccac1c5d5f894229a795e5 Mon Sep 17 00:00:00 2001 From: "robinwilliam.hundt" <robinwilliam.hundt@stud.uni-goettingen.de> Date: Thu, 24 Jan 2019 14:54:56 +0100 Subject: [PATCH] Student submissions are sorted by name on StudentPage Also, the student is not greeted with the anonimised name anymore fixes #131 --- frontend/src/components/student/SubmissionList.vue | 2 +- frontend/src/pages/student/StudentPage.vue | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/student/SubmissionList.vue b/frontend/src/components/student/SubmissionList.vue index d06b481e..bd927b48 100644 --- a/frontend/src/components/student/SubmissionList.vue +++ b/frontend/src/components/student/SubmissionList.vue @@ -33,7 +33,7 @@ export default { text: 'Task', align: 'left', value: 'type.name', - sortable: false + sortable: true }, { text: 'Score', diff --git a/frontend/src/pages/student/StudentPage.vue b/frontend/src/pages/student/StudentPage.vue index d9d2c31f..136d434f 100644 --- a/frontend/src/pages/student/StudentPage.vue +++ b/frontend/src/pages/student/StudentPage.vue @@ -3,7 +3,7 @@ <v-layout justify center> <template v-if="loaded"> <v-flex md10 mt-5 offset-xs1> - <h2>Submissions of {{ studentName || 'Student'}}</h2> + <h2>Your submissions:</h2> <submission-list :submissions="submissions"/> </v-flex> </template> @@ -28,7 +28,6 @@ export default { } }, computed: { - studentName () { return StudentPage.state.studentName }, submissions () { return StudentPage.state.submissionsForList }, loaded () { return StudentPage.state.loaded } } -- GitLab