diff --git a/Models/ThemeConfig/Json/LayoutConfigJson.ts b/Models/ThemeConfig/Json/LayoutConfigJson.ts index 9aa8c2e650..ad6f6a5175 100644 --- a/Models/ThemeConfig/Json/LayoutConfigJson.ts +++ b/Models/ThemeConfig/Json/LayoutConfigJson.ts @@ -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), diff --git a/Models/ThemeConfig/LayoutConfig.ts b/Models/ThemeConfig/LayoutConfig.ts index 840ef60ee3..be5cda3ec1 100644 --- a/Models/ThemeConfig/LayoutConfig.ts +++ b/Models/ThemeConfig/LayoutConfig.ts @@ -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) {