Remove some debug.

This commit is contained in:
James Cole 2020-03-13 18:18:07 +01:00
parent b726e7d106
commit be41049e72
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
5 changed files with 17 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -116,7 +116,7 @@
this.triggerTransactionType();
},
accountName() {
console.log('AccountSelect watch accountName!');
// console.log('AccountSelect watch accountName!');
this.name = this.accountName;
},
accountTypeFilters() {

View File

@ -265,7 +265,7 @@
};
let value = arr[searchType] ?? searchType;
console.log('FULL account type: ' + value);
// console.log('FULL account type: ' + value);
return value;
},
convertData: function () {
@ -288,7 +288,7 @@
// the presence of a source or destination account
firstSource = this.transactions[0].source_account.type;
firstDestination = this.transactions[0].destination_account.type;
console.log('Type of first source is ' + firstSource);
// console.log('Type of first source is ' + firstSource);
if ('invalid' === transactionType && ['asset', 'Asset account', 'Loan', 'Debt', 'Mortgage'].includes(firstSource)) {
transactionType = 'withdrawal';
@ -831,8 +831,8 @@
// force types on destination selector.
this.transactions[index].destination_account.allowed_types = window.allowedOpposingTypes.source[model.type];
}
console.log('Transactions:');
console.log(this.transactions);
//console.log('Transactions:');
//console.log(this.transactions);
},
selectedDestinationAccount: function (index, model) {
// console.log('Now in selectedDestinationAccount()');

View File

@ -117,7 +117,7 @@
);
},
changeData: function () {
//console.log('ForeignAmountSelect changeData');
// console.log('ForeignAmountSelect changeData');
this.enabledCurrencies = [];
let destType = this.destination.type ? this.destination.type.toLowerCase() : 'invalid';
let srcType = this.source.type ? this.source.type.toLowerCase() : 'invalid';
@ -184,6 +184,14 @@
enabled: true
}
];
this.enabledCurrencies = [
{
name: this.no_currency,
id: 0,
enabled: true
}
];
for (const key in res.data) {
if (res.data.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {
if (res.data[key].enabled) {
@ -192,6 +200,7 @@
}
}
}
// console.log(this.enabledCurrencies);
});
}
}