Attempt to fix uploads.

This commit is contained in:
James Cole
2019-07-13 20:58:00 +02:00
parent 2210b8054d
commit 24efe9a096
2 changed files with 143 additions and 150 deletions

View File

@@ -59,7 +59,6 @@
//console.log('Dest "' + this.destination.name + '"');
if (!transactionType && !this.source.name && !this.destination.name) {
$(this.$refs.cur).text('');
console.log('A');
return;
}
if(null === transactionType) {
@@ -68,28 +67,19 @@
if ('' === transactionType && '' !== this.source.currency_name) {
$(this.$refs.cur).text(this.source.currency_name);
console.log('B');
return;
}
if ('' === transactionType && '' !== this.destination.currency_name) {
$(this.$refs.cur).text(this.destination.currency_name);
console.log('C');
return;
}
if (transactionType === 'Withdrawal' || transactionType === 'Transfer') {
$(this.$refs.cur).text(this.source.currency_name);
console.log('D');
return;
}
if (transactionType === 'Deposit') {
$(this.$refs.cur).text(this.destination.currency_name);
console.log('E');
return;
}
console.log('transactionType: ' + transactionType);
console.log('this.source.name: ' + this.source.name);
console.log('this.destination.name: ' + this.destination.name);
console.log('F');
}
},
watch: {