forked from MapComplete/MapComplete
Merge develop
This commit is contained in:
commit
7c5170da15
193 changed files with 4011 additions and 4462 deletions
|
@ -189,16 +189,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