Make remove CLIN button work

This commit is contained in:
leigh-mil
2019-09-04 13:32:01 -04:00
parent 6f1f7f0d3d
commit 27d3f46cc9
3 changed files with 17 additions and 9 deletions

View File

@@ -56,6 +56,7 @@ export default {
mounted: function() {
this.$root.$on('clin-change', this.calculateClinAmounts)
this.$root.$on('remove-clin', this.handleRemoveClin)
},
methods: {
@@ -64,10 +65,9 @@ export default {
++this.clinIndex
},
removeClin: function(clinIndex) {
if (this.clins > 0) {
console.log('removed CLIN')
}
handleRemoveClin: function(event) {
--this.clinIndex
console.log('removed clin')
},
calculateClinAmounts: function(event) {