diff --git a/src/components/ListItem.vue b/src/components/ListItem.vue index a7430c3..134548e 100644 --- a/src/components/ListItem.vue +++ b/src/components/ListItem.vue @@ -29,9 +29,12 @@ export default { } }, methods: { - updateItem: function () { + updateCheckbox: function () { this.$emit('updateItem', {id: this.element.id, checked: this.element.checked}, true) }, + updateContent: function () { + this.$emit('updateItem', {id: this.element.id, content: this.element.content}, true) + }, deleteElement: function () { this.$emit('deleteElement', this.element.id) }