mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-09 15:04:10 +02:00
* add pending, isPaid columns to CSV export on wallet page, issue #887 * prettier formatting * remove isPaid from csv export * added comment Co-authored-by: dni <dni.khr@gmail.com>
This commit is contained in:
@ -668,7 +668,17 @@ new Vue({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
exportCSV: function () {
|
exportCSV: function () {
|
||||||
LNbits.utils.exportCSV(this.paymentsTable.columns, this.payments)
|
// status is important for export but it is not in paymentsTable
|
||||||
|
// because it is manually added with payment detail link and icons
|
||||||
|
// and would cause duplication in the list
|
||||||
|
let columns = this.paymentsTable.columns
|
||||||
|
columns.unshift({
|
||||||
|
name: 'pending',
|
||||||
|
align: 'left',
|
||||||
|
label: 'Pending',
|
||||||
|
field: 'pending'
|
||||||
|
})
|
||||||
|
LNbits.utils.exportCSV(columns, this.payments)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
Reference in New Issue
Block a user