mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Add some debug logging.
This commit is contained in:
2
public/v1/js/edit_transaction.js
vendored
2
public/v1/js/edit_transaction.js
vendored
File diff suppressed because one or more lines are too long
@@ -240,10 +240,11 @@ export default {
|
|||||||
groupId: Number
|
groupId: Number
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
console.log('EditTransaction: mounted()');
|
||||||
this.getGroup();
|
this.getGroup();
|
||||||
},
|
},
|
||||||
ready() {
|
ready() {
|
||||||
// console.log('Ready Group ID: ' + this.groupId);
|
console.log('EditTransaction: ready()');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
positiveAmount(amount) {
|
positiveAmount(amount) {
|
||||||
@@ -349,12 +350,12 @@ export default {
|
|||||||
// console.log(this.transactions[index].destination_account.allowed_types);
|
// console.log(this.transactions[index].destination_account.allowed_types);
|
||||||
},
|
},
|
||||||
getGroup() {
|
getGroup() {
|
||||||
|
console.log('EditTransaction: getGroup()');
|
||||||
const page = window.location.href.split('/');
|
const page = window.location.href.split('/');
|
||||||
const groupId = page[page.length - 1];
|
const groupId = page[page.length - 1];
|
||||||
|
|
||||||
|
|
||||||
const uri = './api/v1/transactions/' + groupId + '?_token=' + document.head.querySelector('meta[name="csrf-token"]').content;
|
const uri = './api/v1/transactions/' + groupId;
|
||||||
// console.log(uri);
|
// console.log(uri);
|
||||||
|
|
||||||
// fill in transactions array.
|
// fill in transactions array.
|
||||||
@@ -363,11 +364,12 @@ export default {
|
|||||||
this.processIncomingGroup(response.data.data);
|
this.processIncomingGroup(response.data.data);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
//console.error('Some error.');
|
console.error('Some error when getting axios');
|
||||||
|
console.error(error);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
processIncomingGroup(data) {
|
processIncomingGroup(data) {
|
||||||
// console.log(data);
|
console.log('EditTransaction: processIncomingGroup()');
|
||||||
this.group_title = data.attributes.group_title;
|
this.group_title = data.attributes.group_title;
|
||||||
let transactions = data.attributes.transactions.reverse();
|
let transactions = data.attributes.transactions.reverse();
|
||||||
for (let key in transactions) {
|
for (let key in transactions) {
|
||||||
@@ -385,7 +387,7 @@ export default {
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
processIncomingGroupRow(transaction) {
|
processIncomingGroupRow(transaction) {
|
||||||
// console.log(transaction);
|
console.log('EditTransaction: processIncomingGroupRow()');
|
||||||
this.setTransactionType(transaction.type);
|
this.setTransactionType(transaction.type);
|
||||||
|
|
||||||
let newTags = [];
|
let newTags = [];
|
||||||
|
Reference in New Issue
Block a user