Mercurial > gemma
changeset 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 | 899914a18d7e |
children | 9e087a495f41 |
files | client/src/components/Pdftool.vue client/src/components/gauge/HydrologicalConditions.vue client/src/components/gauge/Waterlevel.vue client/src/components/systemconfiguration/PDFTemplates.vue |
diffstat | 4 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue Thu May 09 15:07:09 2019 +0200 +++ b/client/src/components/Pdftool.vue Thu May 09 15:14:12 2019 +0200 @@ -211,7 +211,7 @@ // applied to the rest of the form. applyTemplateToForm() { if (this.form.template) { - HTTP.get("/templates/print/" + this.form.template.name, { + HTTP.get("/templates/" + this.form.template.name, { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8" @@ -941,7 +941,7 @@ mounted() { this.form.template = this.templates[0]; this.templateData = this.form.template; - HTTP.get("/templates/print", { + HTTP.get("/templates", { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8"
--- a/client/src/components/gauge/HydrologicalConditions.vue Thu May 09 15:07:09 2019 +0200 +++ b/client/src/components/gauge/HydrologicalConditions.vue Thu May 09 15:14:12 2019 +0200 @@ -318,7 +318,7 @@ return; } if (this.form.template) { - HTTP.get("/templates/print/" + this.form.template.name, { + HTTP.get("/templates/" + 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/print", { + HTTP.get("/templates", { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8"
--- a/client/src/components/gauge/Waterlevel.vue Thu May 09 15:07:09 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Thu May 09 15:14:12 2019 +0200 @@ -296,7 +296,7 @@ return; } if (this.form.template) { - HTTP.get("/templates/print/" + this.form.template.name, { + HTTP.get("/templates/" + 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/print", { + HTTP.get("/templates", { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8"
--- a/client/src/components/systemconfiguration/PDFTemplates.vue Thu May 09 15:07:09 2019 +0200 +++ b/client/src/components/systemconfiguration/PDFTemplates.vue Thu May 09 15:14:12 2019 +0200 @@ -113,7 +113,7 @@ element.style.display = "none"; element.setAttribute("download", template.name + ".json"); document.body.appendChild(element); - HTTP.get("/templates/print/" + template.name, { + HTTP.get("/templates/" + template.name, { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8" @@ -255,7 +255,7 @@ reader.readAsText(this.$refs.uploadTemplate.files[0]); }, loadTemplates() { - HTTP.get("/templates/print", { + HTTP.get("/templates", { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8"