Mercurial > gemma
comparison client/src/components/gauge/HydrologicalConditions.vue @ 3222:83e8e1ea0aff
print_templates: changed route /templates/print to /templates and /templates/print/... to /templates/
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 09 May 2019 15:14:12 +0200 |
parents | f87fd173f750 |
children | 5e773e0c05be |
comparison
equal
deleted
inserted
replaced
3221:899914a18d7e | 3222:83e8e1ea0aff |
---|---|
316 if (this.form.template.hasOwnProperty("properties")) { | 316 if (this.form.template.hasOwnProperty("properties")) { |
317 this.templateData = this.defaultTemplate; | 317 this.templateData = this.defaultTemplate; |
318 return; | 318 return; |
319 } | 319 } |
320 if (this.form.template) { | 320 if (this.form.template) { |
321 HTTP.get("/templates/print/" + this.form.template.name, { | 321 HTTP.get("/templates/" + this.form.template.name, { |
322 headers: { | 322 headers: { |
323 "X-Gemma-Auth": localStorage.getItem("token"), | 323 "X-Gemma-Auth": localStorage.getItem("token"), |
324 "Content-type": "text/xml; charset=UTF-8" | 324 "Content-type": "text/xml; charset=UTF-8" |
325 } | 325 } |
326 }) | 326 }) |
1060 mounted() { | 1060 mounted() { |
1061 this.drawDiagram(); | 1061 this.drawDiagram(); |
1062 this.templates[0] = this.defaultTemplate; | 1062 this.templates[0] = this.defaultTemplate; |
1063 this.form.template = this.templates[0]; | 1063 this.form.template = this.templates[0]; |
1064 this.templateData = this.form.template; | 1064 this.templateData = this.form.template; |
1065 HTTP.get("/templates/print", { | 1065 HTTP.get("/templates", { |
1066 headers: { | 1066 headers: { |
1067 "X-Gemma-Auth": localStorage.getItem("token"), | 1067 "X-Gemma-Auth": localStorage.getItem("token"), |
1068 "Content-type": "text/xml; charset=UTF-8" | 1068 "Content-type": "text/xml; charset=UTF-8" |
1069 } | 1069 } |
1070 }) | 1070 }) |