diff 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
line wrap: on
line diff
--- 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"