Add remove option for new depicts list.

This commit is contained in:
Edward Betts 2019-09-25 14:28:03 +01:00
parent 9b92884523
commit fa75292e22
2 changed files with 6 additions and 2 deletions

View file

@ -6,6 +6,9 @@ var app = new Vue({
new_depicts: [],
},
methods: {
remove(index) {
this.$delete(this.new_depicts, index);
},
add_depicts(hit) {
this.new_depicts.push(hit);
this.hits = [];