Skip to content

Firefly III: a personal finances manager

Fix https://github.com/firefly-iii/firefly-iii/issues/5335

James Cole04f5098d0692
diff --git a/frontend/src/components/transactions/Create.vue b/frontend/src/components/transactions/Create.vue
index 4f650dced0..faf69c6ece 100644
--- a/frontend/src/components/transactions/Create.vue
+++ b/frontend/src/components/transactions/Create.vue
@@ -23,7 +23,7 @@
<alert :message="errorMessage" type="danger"/>
<alert :message="successMessage" type="success"/>
<form @submit="submitTransaction" autocomplete="off">
- <SplitPills :transactions="transactions" :count="transactions.length"/>
+ <SplitPills ref="pills" :transactions="transactions" :count="transactions.length"/>
<div class="tab-content">
<SplitForm
v-for="(transaction, index) in this.transactions"
@@ -71,7 +71,7 @@
&nbsp;
</div>
<button type="button" class="btn btn-outline-primary btn-block" @click="addTransactionArray"><span class="far fa-clone"></span> {{
- $t('firefly.add_another_split')
+ $t('firefly.add_another_split')
}}
</button>
</div>
@@ -221,6 +221,7 @@ export default {
]
),
addTransactionArray: function (event) {
+ console.log('Record call to addTransactionArray');
event.preventDefault();
this.addTransaction();
},
@@ -228,7 +229,9 @@ export default {
* Removes a split from the array.
*/
removeTransaction: function (payload) {
- // console.log('Triggered to remove transaction ' + payload.index);
+ console.log('Record call to removeTransaction');
+ console.log('Triggered to remove transaction ' + payload.index);
+ window.$('#tab_split_' + (payload.index - 1)).click();
this.$store.commit('transactions/create/deleteTransaction', payload);
},
submitData: function (url, data) {