mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
This commit is contained in:
parent
9731503826
commit
04f5098d06
@ -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 @@
|
||||
|
||||
</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) {
|
||||
|
Loading…
Reference in New Issue
Block a user