Skip to content

Commit

Permalink
Fix note (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Nov 5, 2017
1 parent efe4a85 commit 5cf625c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/components/sidebars/Base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ export default {
data () {
return {
noteCollapsed: true,
showConfirmButtons: false
showConfirmButtons: false,
note: this.commentAnnotation
? this.commentAnnotation.body.value
: ''
}
},
Expand Down Expand Up @@ -110,13 +113,6 @@ export default {
},
computed: {
note () {
if (!this.commentAnnotation) {
return ''
}
return this.commentAnnotation.body.value
},
title () {
return this.disableComplete && this.task.complete
? 'Task complete'
Expand Down Expand Up @@ -146,8 +142,8 @@ export default {
/**
* Emit the noteupdated event with the note value.
*/
updateNote (evt) {
this.$emit('noteupdated', this.task, evt.target.value)
updateNote () {
this.$emit('noteupdated', this.task, this.note)
},
/**
Expand Down

0 comments on commit 5cf625c

Please sign in to comment.