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

use data property for feedback rendering

parent 336e7e0e
No related branches found
No related tags found
2 merge requests!23Resolve "Logout of tutors after inactivity",!18WIP: Submission notes
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
<v-text-field <v-text-field
name="feedback-input" name="feedback-input"
label="Please provide your feedback here" label="Please provide your feedback here"
v-model="feedback" v-model="current_feedback"
rows="2" rows="2"
textarea textarea
autofocus autofocus
auto-grow auto-grow
hide-details
></v-text-field> ></v-text-field>
<v-btn color="success">Submit</v-btn> <v-btn color="success" @click="submitFeedback()">Submit</v-btn>
<v-btn>Cancel</v-btn> <v-btn>Cancel</v-btn>
</div> </div>
</template> </template>
...@@ -18,7 +19,17 @@ ...@@ -18,7 +19,17 @@
<script> <script>
export default { export default {
name: 'comment-form', name: 'comment-form',
props: ['feedback'] props: ['feedback'],
data () {
return {
current_feedback: this.feedback
}
},
methods: {
submitFeedback () {
console.log(this.current_feedback)
}
}
} }
</script> </script>
......
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