forked from MapComplete/MapComplete
Housekeeping: formatting
This commit is contained in:
parent
9d53a45f9a
commit
1528dfaae1
168 changed files with 3332 additions and 4560 deletions
|
@ -190,16 +190,17 @@ class StatsticsForOverviewFile extends Combine {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
elements.push(new SubtleButton(
|
||||
undefined, "Download as csv"
|
||||
).onClick(() => {
|
||||
const data = GeoOperations.toCSV(overview._meta,
|
||||
{
|
||||
ignoreTags: /^((deletion:node)|(import:node)|(move:node)|(soft-delete:))/
|
||||
elements.push(
|
||||
new SubtleButton(undefined, "Download as csv").onClick(() => {
|
||||
const data = GeoOperations.toCSV(overview._meta, {
|
||||
ignoreTags:
|
||||
/^((deletion:node)|(import:node)|(move:node)|(soft-delete:))/,
|
||||
})
|
||||
Utils.offerContentsAsDownloadableFile(data , "statistics.csv", {mimetype: "text/csv"})
|
||||
}))
|
||||
Utils.offerContentsAsDownloadableFile(data, "statistics.csv", {
|
||||
mimetype: "text/csv",
|
||||
})
|
||||
})
|
||||
)
|
||||
|
||||
return new Combine(elements)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue