Mercurial > gemma
changeset 3196:0d76a0476a5b
diagram_store: fix encodeURIComponent
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 08 May 2019 14:35:40 +0200 |
parents | 88c31298eba8 |
children | 9d38df37c1f8 |
files | client/src/store/diagram.js |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/diagram.js Wed May 08 13:54:44 2019 +0200 +++ b/client/src/store/diagram.js Wed May 08 14:35:40 2019 +0200 @@ -64,9 +64,11 @@ loadAvailableFairwayDepth: ({ commit }, options) => { return new Promise((resolve, reject) => { const { feature, from, to, frequency } = options; - const URL = `/data/bottleneck/fairway-depth/${ + const start = encodeURIComponent("00:00:00+07:00"); + const end = encodeURIComponent("23:59:59+07:00"); + const URL = `/data/bottleneck/fairway-depth/${encodeURIComponent( feature.properties.name - }?from=${from}T00:00:00%2b07:00&to=${to}T23:59:59%2b07:00&mode=${frequency}`; + )}?from=${from}T${start}&to=${to}T${end}&mode=${frequency}`; HTTP.get(URL, { headers: { "X-Gemma-Auth": localStorage.getItem("token") } })