Skip to content

Commit

Permalink
Download timeseries from grid cell selection. (#900)
Browse files Browse the repository at this point in the history
* Download timeseries from grid cell selection.

* Formatting
  • Loading branch information
ekkelenkamp authored Jun 12, 2024
1 parent 41019db commit 134473d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/components/download/TimeSeriesFileDownloadComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,17 @@ const downloadFile = (downloadFormat: string) => {
)
}
if (isTimeSeriesGridActionsFilter(props.filter)) {
console.log('Not implemented')
return
props.filter.documentFormat = downloadFormat
const queryParameters = filterToParams(props.filter)
const url = new URL(
`${baseUrl}rest/fewspiservice/v1/timeseries/grid${queryParameters}&${viewPeriod}`,
)
return downloadFileAttachment(
url.href,
fileName.value,
downloadFormat,
authenticationManager.getAccessToken(),
)
}
}
Expand Down

0 comments on commit 134473d

Please sign in to comment.