Gitlab Community Edition Instance

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

prop type annotations and editable option of annotated-submission

parent 2cc91192
Branches
Tags
1 merge request!25WIP: Resolve "A new student overview page with Vue.js"
Pipeline #
<template>
<v-layout>
<annotated-submission class="ma-3"></annotated-submission>
<annotated-submission class="ma-3" :editable="false"></annotated-submission>
</v-layout>
</template>
......
......@@ -48,7 +48,12 @@
]
}
},
props: ['submissions'],
props: {
submissions: {
type: Array,
required: true
}
},
computed: {
sumScore () {
console.log(this.submissions)
......
......@@ -14,7 +14,7 @@
@click="toggleEditorOnLine(index)">{{ feedback[index] }}
</feedback-comment>
<comment-form
v-if="showEditorOnLine[index]"
v-if="showEditorOnLine[index] && editable"
@collapseFeedbackForm="showEditorOnLine[index] = false"
:feedback="feedback[index]"
:index="index">
......@@ -35,6 +35,12 @@
FeedbackComment,
CommentForm},
name: 'annotated-submission',
props: {
editable: {
type: Boolean,
default: false
}
},
beforeCreate () {
this.$store.dispatch('getFeedback', 0)
this.$store.dispatch('getSubmission', 0)
......
......@@ -21,7 +21,10 @@
<script>
export default {
name: 'comment-form',
props: ['feedback', 'index'],
props: {
feedback: String,
index: Number
},
data () {
return {
current_feedback: this.feedback
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment