mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-07 03:18:10 +02:00
feat: allow custom file name for exportCSV
This commit is contained in:
parent
f72421c62c
commit
7bb936b09b
@ -261,7 +261,7 @@ window.LNbits = {
|
||||
return data
|
||||
}
|
||||
},
|
||||
exportCSV: function (columns, data) {
|
||||
exportCSV: function (columns, data, fileName) {
|
||||
var wrapCsvValue = function (val, formatFn) {
|
||||
var formatted = formatFn !== void 0 ? formatFn(val) : val
|
||||
|
||||
@ -295,7 +295,7 @@ window.LNbits = {
|
||||
.join('\r\n')
|
||||
|
||||
var status = Quasar.utils.exportFile(
|
||||
'table-export.csv',
|
||||
`${fileName || 'table-export'}.csv`,
|
||||
content,
|
||||
'text/csv'
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user