Commit 941e63d1 authored by Pierre Marchand's avatar Pierre Marchand

[client/timeserie] CSV link with lang

parent 1f4cff25
import { DIV, A } from 'sdi/components/elements';
import map from '../map';
import info from '../info';
import table from '../table';
import mapLegend from '../legend/map';
......@@ -15,7 +14,7 @@ import {
import { navigateConfig, getConfig, encodeConfig } from 'timeserie/src/events/route';
import renderDatesInputBox from '../date-picker';
import { getLevel } from 'timeserie/src/queries/timeserie';
import { getApiUrl } from 'sdi/app';
import { getApiUrl, getLang } from 'sdi/app';
const renderActions = () =>
DIV(
......@@ -23,7 +22,7 @@ const renderActions = () =>
// renderButtonCSV(() => '')
getConfig().map(config => A({
target: '_blank',
href: getApiUrl(`geodata/water/csv/${encodeConfig(config)}`),
href: getApiUrl(`geodata/water/csv/${getLang()}/${encodeConfig(config)}`),
}, 'CSV')),
);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment