add pending column to CSV export on wallet page, issue #887 (#889)

* 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:
dni ⚡
2022-08-16 17:01:32 +02:00
committed by GitHub
parent ee4049ec1f
commit 3dc00f67db

View File

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