James Cole 2021-12-10 16:27:12 +01:00
parent 9731503826
commit 04f5098d06
No known key found for this signature in database
GPG Key ID: BDE6667570EADBD5

View File

@ -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) {