This commit is contained in:
James Cole
2020-08-20 17:57:19 +02:00
parent 229d4bfe6b
commit d78d2f25eb
12 changed files with 151 additions and 196 deletions

View File

@@ -37,7 +37,7 @@
<script>
export default {
mounted() {
console.log('Component mounted.')
// console.log('Component mounted.')
}
}
</script>

View File

@@ -37,7 +37,7 @@
<script>
export default {
mounted() {
console.log('Component mounted.')
// console.log('Component mounted.')
}
}
</script>

View File

@@ -148,7 +148,7 @@
'?types=' +
types +
'&query=';
console.log('Auto complete URI is now ' + this.accountAutoCompleteURI);
// console.log('Auto complete URI is now ' + this.accountAutoCompleteURI);
},
hasError: function () {
return this.error.length > 0;

View File

@@ -482,7 +482,7 @@ export default {
this.parseErrors(error.response.data);
// something.
console.log('enable button again.')
// console.log('enable button again.')
button.removeAttr('disabled');
});
@@ -516,7 +516,7 @@ export default {
// clear errors:
this.setDefaultErrors();
console.log('enable button again.')
// console.log('enable button again.')
let button = $('#submitButton');
button.removeAttr('disabled');
} else {
@@ -741,6 +741,8 @@ export default {
resetTransactions: function () {
// console.log('Now in resetTransactions()');
this.transactions = [];
this.group_title = '';
},
addTransactionToArray: function (e) {
// console.log('Now in addTransactionToArray()');
@@ -865,7 +867,7 @@ export default {
},
selectedSourceAccount: function (index, model) {
console.log('Now in selectedSourceAccount()');
// console.log('Now in selectedSourceAccount()');
if (typeof model === 'string') {
//console.log('model is string.')
// cant change types, only name.
@@ -980,6 +982,3 @@ export default {
},
}
</script>
<style scoped>
</style>

View File

@@ -541,11 +541,11 @@ export default {
// depends on the transaction type, where we get the currency.
if('withdrawal' === transactionType || 'transfer' === transactionType) {
row.currency_id = row.source_account.currency_id;
console.log('Overruled currency ID to ' + row.currency_id);
// console.log('Overruled currency ID to ' + row.currency_id);
}
if('deposit' === transactionType) {
row.currency_id = row.destination_account.currency_id;
console.log('Overruled currency ID to ' + row.currency_id);
// console.log('Overruled currency ID to ' + row.currency_id);
}
date = row.date;

View File

@@ -198,7 +198,7 @@
for (const key in res.data.data) {
if (res.data.data.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {
if (res.data.data[key].attributes.enabled) {
console.log(res.data.data[key].attributes);
// console.log(res.data.data[key].attributes);
this.currencies.push(res.data.data[key]);
this.enabledCurrencies.push(res.data.data[key]);
}

View File

@@ -105,7 +105,7 @@
// final list:
this.piggies = ordered;
console.log(ordered);
// console.log(ordered);
});
}
}