comparison client/src/components/gauge/Waterlevel.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
294 this.templateData = this.defaultTemplate; 294 this.templateData = this.defaultTemplate;
295 this.form.paperSize = this.defaultTemplate.properties.paperSize; 295 this.form.paperSize = this.defaultTemplate.properties.paperSize;
296 return; 296 return;
297 } 297 }
298 if (this.form.template) { 298 if (this.form.template) {
299 HTTP.get("/templates/print/" + this.form.template.name, { 299 HTTP.get("/templates/" + this.form.template.name, {
300 headers: { 300 headers: {
301 "X-Gemma-Auth": localStorage.getItem("token"), 301 "X-Gemma-Auth": localStorage.getItem("token"),
302 "Content-type": "text/xml; charset=UTF-8" 302 "Content-type": "text/xml; charset=UTF-8"
303 } 303 }
304 }) 304 })
1158 mounted() { 1158 mounted() {
1159 this.drawDiagram(); 1159 this.drawDiagram();
1160 this.templates[0] = this.defaultTemplate; 1160 this.templates[0] = this.defaultTemplate;
1161 this.form.template = this.templates[0]; 1161 this.form.template = this.templates[0];
1162 this.templateData = this.form.template; 1162 this.templateData = this.form.template;
1163 HTTP.get("/templates/print", { 1163 HTTP.get("/templates", {
1164 headers: { 1164 headers: {
1165 "X-Gemma-Auth": localStorage.getItem("token"), 1165 "X-Gemma-Auth": localStorage.getItem("token"),
1166 "Content-type": "text/xml; charset=UTF-8" 1166 "Content-type": "text/xml; charset=UTF-8"
1167 } 1167 }
1168 }) 1168 })