Final code for 5.3.3

This commit is contained in:
James Cole
2021-04-03 18:48:21 +02:00
parent 70a6ac0038
commit a3091f7509
21 changed files with 61 additions and 37 deletions

View File

@@ -96,6 +96,10 @@ export default {
type: Object,
default: () => ({})
},
transactionType: {
type: String,
default: 'any'
},
},
data() {
return {
@@ -234,10 +238,6 @@ export default {
}
},
computed: {
// 'transactionType',
// 'sourceAllowedTypes',
// 'destinationAllowedTypes',
// 'allowedOpposingTypes'
accountKey: {
get() {
return 'source' === this.direction ? 'source_account' : 'destination_account';
@@ -249,11 +249,13 @@ export default {
if (0 === this.index) {
return true;
}
// console.log('Direction of account ' + this.index + ' is ' + this.direction + '(' + this.transactionType + ')');
// console.log(this.transactionType);
if ('source' === this.direction) {
return 'any' === this.transactionType || 'Deposit' === this.transactionType
return 'any' === this.transactionType || 'Deposit' === this.transactionType || typeof this.transactionType === 'undefined';
}
if ('destination' === this.direction) {
return 'any' === this.transactionType || 'Withdrawal' === this.transactionType;
return 'any' === this.transactionType || 'Withdrawal' === this.transactionType || typeof this.transactionType === 'undefined';
}
return false;
}