# HG changeset patch # User Fadi Abbud # Date 1557474485 -7200 # Node ID 5e773e0c05beec11d66799401b14734d90d74115 # Parent 607a158fe8f5c45ad1360ffddad1846a5f803f60 client: diagram-template: adjust the routes for waterlevels and hydrologicalconditions diagram diff -r 607a158fe8f5 -r 5e773e0c05be client/src/components/gauge/HydrologicalConditions.vue --- 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" diff -r 607a158fe8f5 -r 5e773e0c05be client/src/components/gauge/Waterlevel.vue --- 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"