diff --git a/web/client/components/data/download/DownloadDialog.jsx b/web/client/components/data/download/DownloadDialog.jsx index 36cdbc3a6b..c9c1e60846 100644 --- a/web/client/components/data/download/DownloadDialog.jsx +++ b/web/client/components/data/download/DownloadDialog.jsx @@ -49,7 +49,8 @@ class DownloadDialog extends React.Component { formatsLoading: PropTypes.bool, virtualScroll: PropTypes.bool, customAttributeSettings: PropTypes.object, - attributes: PropTypes.array + attributes: PropTypes.array, + hideServiceSelector: PropTypes.bool }; static defaultProps = { @@ -82,7 +83,8 @@ class DownloadDialog extends React.Component { {name: "EPSG:4326", label: "WGS84"} ], virtualScroll: true, - downloadOptions: {} + downloadOptions: {}, + hideServiceSelector: false }; componentDidUpdate(oldProps) { @@ -145,6 +147,7 @@ class DownloadDialog extends React.Component { virtualScroll={this.props.virtualScroll} customAttributesSettings={this.props.customAttributeSettings} attributes={this.props.attributes} + hideServiceSelector={this.props.hideServiceSelector} />} {!this.props.checkingWPSAvailability &&
diff --git a/web/client/components/data/download/DownloadOptions.jsx b/web/client/components/data/download/DownloadOptions.jsx index 0db5315471..f7c05df939 100644 --- a/web/client/components/data/download/DownloadOptions.jsx +++ b/web/client/components/data/download/DownloadOptions.jsx @@ -42,7 +42,8 @@ class DownloadOptions extends React.Component { layer: PropTypes.object, formatsLoading: PropTypes.bool, virtualScroll: PropTypes.bool, - services: PropTypes.arrayOf(PropTypes.object) + services: PropTypes.arrayOf(PropTypes.object), + hideServiceSelector: PropTypes.bool }; static defaultProps = { @@ -60,7 +61,8 @@ class DownloadOptions extends React.Component { services: [ { value: "wps", label: "WPS" }, { value: "wfs", label: "WFS" } - ] + ], + hideServiceSelector: false }; constructor(props) { @@ -76,7 +78,7 @@ class DownloadOptions extends React.Component { render() { return (
- {this.props.wpsAvailable && this.props.wfsAvailable && + {!this.props.hideServiceSelector && this.props.wpsAvailable && this.props.wfsAvailable && <>