Themes: enable download functionality by default
This commit is contained in:
parent
94635337e6
commit
5504d49d59
2 changed files with 4 additions and 4 deletions
|
@ -276,11 +276,11 @@ export interface LayoutConfigJson {
|
|||
/**
|
||||
* If set to true, download button for the data will be shown (offers downloading as geojson and csv)
|
||||
*/
|
||||
enableDownload?: false | boolean
|
||||
enableDownload?: true | boolean
|
||||
/**
|
||||
* If set to true, exporting a pdf is enabled
|
||||
*/
|
||||
enablePdfDownload?: false | boolean
|
||||
enablePdfDownload?: true | boolean
|
||||
|
||||
/**
|
||||
* If true, notes will be loaded and parsed. If a note is an import (as created by the import_helper.html-tool from mapcomplete),
|
||||
|
|
|
@ -195,8 +195,8 @@ export default class LayoutConfig implements LayoutInformation {
|
|||
this.enableAddNewPoints = json.enableAddNewPoints ?? true
|
||||
this.enableBackgroundLayerSelection = json.enableBackgroundLayerSelection ?? true
|
||||
this.enableShowAllQuestions = json.enableShowAllQuestions ?? false
|
||||
this.enableExportButton = json.enableDownload ?? false
|
||||
this.enablePdfDownload = json.enablePdfDownload ?? false
|
||||
this.enableExportButton = json.enableDownload ?? true
|
||||
this.enablePdfDownload = json.enablePdfDownload ?? true
|
||||
this.customCss = json.customCss
|
||||
this.overpassUrl = Constants.defaultOverpassUrls
|
||||
if (json.overpassUrl !== undefined) {
|
||||
|
|
Loading…
Reference in a new issue