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

Changed routes to id's os sub_types

parent 3214ec4d
No related branches found
No related tags found
1 merge request!25WIP: Resolve "A new student overview page with Vue.js"
......@@ -52,8 +52,8 @@
submissionNavItems: function () {
return this.$store.state.studentPage.submissions.map((sub, index) => {
return {
name: sub.type,
route: `/student/submission/${index}`
name: sub.type_name,
route: `/student/submission/${sub.type_id}`
}
})
}
......
......@@ -4,12 +4,13 @@
hide-actions
:headers="headers"
:items="submissions"
item-key="type"
>
<template slot="items" slot-scope="props">
<td>{{ props.item.type }}</td>
<td>{{ props.item.type_name }}</td>
<td class="text-xs-right">{{ props.item.score }}</td>
<td class="text-xs-right">{{ props.item.full_score }}</td>
<td class="text-xs-right"><v-btn :to="`submission/${props.index}`" color="orange lighten-2">View</v-btn></td>
<td class="text-xs-right"><v-btn :to="`submission/${props.item.type_id}`" color="orange lighten-2">View</v-btn></td>
</template>
</v-data-table>
<v-alert color="info" value="true">
......
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