Cleanup JS

This commit is contained in:
James Cole
2020-10-28 20:16:21 +01:00
parent ca3d836c83
commit 23356b3884
7 changed files with 28 additions and 27 deletions

View File

@@ -78,7 +78,7 @@ export default {
return this.error.length > 0;
},
changeData: function () {
console.log('Triggered amount changeData()');
//console.log('Triggered amount changeData()');
let transactionType = this.transactionType;
// reset of all are empty:
if (!transactionType && !this.source.name && !this.destination.name) {
@@ -130,23 +130,23 @@ export default {
},
watch: {
source: function () {
console.log('amount: watch source triggered');
// console.log('amount: watch source triggered');
this.changeData();
},
value: function () {
console.log('amount: value changed');
// console.log('amount: value changed');
},
destination: function () {
console.log('amount: watch destination triggered');
// console.log('amount: watch destination triggered');
this.changeData();
},
transactionType: function () {
console.log('amount: watch transaction type triggered');
// console.log('amount: watch transaction type triggered');
this.changeData();
}
},
mounted() {
console.log('amount: mounted');
// console.log('amount: mounted');
this.changeData();
}
}