mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 18:02:34 +00:00
Rebuild new layout.
This commit is contained in:
@@ -92,10 +92,6 @@ export default {
|
||||
type: Array,
|
||||
default: () => ([])
|
||||
},
|
||||
allowedOpposingTypes: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
transactionType: {
|
||||
type: String,
|
||||
default: 'any'
|
||||
@@ -161,9 +157,6 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// allowedOpposingTypes: function () {
|
||||
// console.log(this.direction + ' account noticed change in allowedOpposingTypes');
|
||||
// },
|
||||
sourceAllowedTypes: function (value) {
|
||||
// console.log(this.direction + ' account noticed change in sourceAllowedTypes');
|
||||
// console.log(value);
|
||||
@@ -193,7 +186,15 @@ export default {
|
||||
this.accountName = this.account.name_with_balance;
|
||||
},
|
||||
accountName: function (value) {
|
||||
|
||||
if('source' === this.direction && 'Deposit' !== this.transactionType) {
|
||||
return;
|
||||
}
|
||||
if('destination' === this.direction && 'Withdrawal' !== this.transactionType) {
|
||||
return;
|
||||
}
|
||||
if (false === this.selectedAccountTrigger) {
|
||||
console.log('User submitted manual thing.');
|
||||
// console.log('Save to change name!');
|
||||
this.$emit('set-account',
|
||||
{
|
||||
@@ -212,22 +213,6 @@ export default {
|
||||
}
|
||||
this.selectedAccountTrigger = false;
|
||||
},
|
||||
account: function (value) {
|
||||
let opposingAccounts = [];
|
||||
let type = value.type ? value.type : 'no_type';
|
||||
if ('undefined' !== typeof this.allowedOpposingTypes[this.direction]) {
|
||||
if ('undefined' !== typeof this.allowedOpposingTypes[this.direction][type]) {
|
||||
opposingAccounts = this.allowedOpposingTypes[this.direction][type];
|
||||
}
|
||||
}
|
||||
|
||||
if ('source' === this.direction) {
|
||||
this.$emit('set-dest-types', opposingAccounts);
|
||||
}
|
||||
if ('destination' === this.direction) {
|
||||
this.$emit('set-src-types', opposingAccounts);
|
||||
}
|
||||
},
|
||||
value: function (value) {
|
||||
// console.log('Index ' + this.index + ' nwAct: ', value);
|
||||
// console.log(this.direction + ' account overruled by external forces.');
|
||||
|
||||
Reference in New Issue
Block a user