Mercurial > gemma
changeset 3229:5e773e0c05be
client: diagram-template: adjust the routes for waterlevels and hydrologicalconditions diagram
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Fri, 10 May 2019 09:48:05 +0200 |
parents | 607a158fe8f5 |
children | 128d686c3950 |
files | client/src/components/gauge/HydrologicalConditions.vue client/src/components/gauge/Waterlevel.vue |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/gauge/HydrologicalConditions.vue Thu May 09 17:13:16 2019 +0200 +++ b/client/src/components/gauge/HydrologicalConditions.vue Fri May 10 09:48:05 2019 +0200 @@ -318,7 +318,7 @@ return; } if (this.form.template) { - HTTP.get("/templates/" + this.form.template.name, { + HTTP.get("/templates/diagram/" + this.form.template.name, { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8" @@ -1062,7 +1062,7 @@ this.templates[0] = this.defaultTemplate; this.form.template = this.templates[0]; this.templateData = this.form.template; - HTTP.get("/templates", { + HTTP.get("/templates/diagram", { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8"
--- a/client/src/components/gauge/Waterlevel.vue Thu May 09 17:13:16 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Fri May 10 09:48:05 2019 +0200 @@ -296,7 +296,7 @@ return; } if (this.form.template) { - HTTP.get("/templates/" + this.form.template.name, { + HTTP.get("/templates/diagram/" + this.form.template.name, { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8" @@ -1160,7 +1160,7 @@ this.templates[0] = this.defaultTemplate; this.form.template = this.templates[0]; this.templateData = this.form.template; - HTTP.get("/templates", { + HTTP.get("/templates/diagram", { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8"