Skip to content

Commit

Permalink
fix(download): Fix download link
Browse files Browse the repository at this point in the history
Build download link correctly
  • Loading branch information
mpfeil committed Dec 18, 2018
1 parent 785ffd1 commit 2e2806e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/scripts/controllers/sidebar.download.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
function getHref () {
if (vm.map && vm.inputFilter.DateTo && vm.inputFilter.DateFrom && vm.inputFilter.Phenomenon) {
var params = getDownloadParameters();
var query = $httpParamSerializer(params);
var endpoint = '';
if (vm.inputFilter.window === 'raw') {
endpoint = '/boxes/data';
Expand All @@ -132,11 +131,13 @@
params.operation = vm.inputFilter.operation;
endpoint = '/statistics/descriptive';
}
var query = $httpParamSerializer(params);

return encodeURI(endpoint + '?' + query);
} else {
return '';
}

return '';

}

function getBoxIdsFromBBox (map) {
Expand Down

0 comments on commit 2e2806e

Please sign in to comment.