Box previous periods
diff --git a/frontend/src/components/transactions/TransactionBill.vue b/frontend/src/components/transactions/TransactionBill.vue
index 5702326588..1bb269247b 100644
--- a/frontend/src/components/transactions/TransactionBill.vue
+++ b/frontend/src/components/transactions/TransactionBill.vue
@@ -50,7 +50,6 @@ export default {
return {
billList: [],
bill: this.value,
- emitEvent: true
}
},
created() {
@@ -93,10 +92,7 @@ export default {
this.bill = value;
},
bill: function (value) {
- if (true === this.emitEvent) {
this.$emit('set-field', {field: 'bill_id', index: this.index, value: value});
- }
- this.emitEvent = true;
}
},
}
diff --git a/frontend/src/components/transactions/TransactionNotes.vue b/frontend/src/components/transactions/TransactionNotes.vue
index 686ed7a601..6bb594d609 100644
--- a/frontend/src/components/transactions/TransactionNotes.vue
+++ b/frontend/src/components/transactions/TransactionNotes.vue
@@ -43,7 +43,6 @@ export default {
return {
notes: this.value,
availableFields: this.customFields,
- emitEvent: true
}
},
computed: {
@@ -56,17 +55,13 @@ export default {
},
watch: {
value: function (value) {
- this.emitEvent = false;
this.notes = value;
},
customFields: function (value) {
this.availableFields = value;
},
notes: function (value) {
- if (true === this.emitEvent) {
- this.$emit('set-field', {field: 'notes', index: this.index, value: value});
- }
- this.emitEvent = true;
+ this.$emit('set-field', {field: 'notes', index: this.index, value: value});
}
}
}
diff --git a/frontend/src/components/transactions/TransactionPiggyBank.vue b/frontend/src/components/transactions/TransactionPiggyBank.vue
index a696e2a399..8af0a74a1c 100644
--- a/frontend/src/components/transactions/TransactionPiggyBank.vue
+++ b/frontend/src/components/transactions/TransactionPiggyBank.vue
@@ -51,7 +51,6 @@ export default {
return {
piggyList: [],
piggy_bank_id: this.value,
- emitEvent: true
}
},
created() {
@@ -90,13 +89,10 @@ export default {
},
watch: {
value: function (value) {
- this.emitEvent = false;
this.piggy_bank_id = value;
},
piggy_bank_id: function (value) {
- if (true === this.emitEvent) {
- this.$emit('set-field', {field: 'piggy_bank_id', index: this.index, value: value});
- }
+ this.$emit('set-field', {field: 'piggy_bank_id', index: this.index, value: value});
this.emitEvent = true;
}
}
diff --git a/frontend/src/components/transactions/TransactionTags.vue b/frontend/src/components/transactions/TransactionTags.vue
index d3a4782931..f5ee3f41aa 100644
--- a/frontend/src/components/transactions/TransactionTags.vue
+++ b/frontend/src/components/transactions/TransactionTags.vue
@@ -58,7 +58,6 @@ export default {
currentTag: '',
updateTags: true, // the idea is that this is always true, except when the tags-function sets the value.
tagList: this.value,
- emitEvent: true
};
},
created() {
@@ -74,15 +73,11 @@ export default {
watch: {
'currentTag': 'initItems',
value: function (value) {
- this.emitEvent = false;
this.tagList = value;
},
tagList: function (value) {
// console.log('watch tagList');
- if (true === this.emitEvent) {
this.$emit('set-field', {field: 'tags', index: this.index, value: value});
- }
- this.emitEvent = true;
this.updateTags = false;
this.tags = value;
},