Skip to content

Commit

Permalink
item added/removed notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
czytelny committed Oct 28, 2017
1 parent 9a72778 commit b51ddbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/components/Board.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
},
submitNewItem () {
if (this.newTodoItem.trim().length === 0) {
this.newTodoItem = ''
return
}
this.isSubmittingNewItem = true
Expand All @@ -141,6 +142,7 @@
}
this.newTodoItem = ''
this.saveBoardItems()
this.$Message.success('Item added')
this.$nextTick(() => {
this.isSubmittingNewItem = false
})
Expand All @@ -151,6 +153,7 @@
this.boardItems.splice(indexToRemove, 1)
this.saveBoardItems()
this.focusOnInput()
this.$Message.success('Item removed')
}
},
changeItemVal (itemId, itemVal) {
Expand Down

0 comments on commit b51ddbe

Please sign in to comment.