diff client/src/store/imports.js @ 2749:cd789302b3e2

import_overview: start is initially always beginning of current hour
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 21 Mar 2019 11:54:17 +0100
parents c6695d6e9334
children 2aa1620ffd9e
line wrap: on
line diff
--- a/client/src/store/imports.js	Thu Mar 21 11:34:48 2019 +0100
+++ b/client/src/store/imports.js	Thu Mar 21 11:54:17 2019 +0100
@@ -216,7 +216,7 @@
       });
     },
     getImports({ commit }, options) {
-      let { filter, from, to } = options;
+      let { filter, from, to, query } = options;
       let queryParams = "";
       const hasWarning = filter.includes("warning");
       filter = filter.filter(x => x != "warning");
@@ -225,14 +225,17 @@
         if (hasWarning) queryParams += "&warnings=true";
         queryParams += "&from=" + from;
         queryParams += "&to=" + to;
+        queryParams += "&query=" + query;
       } else {
         if (hasWarning) {
           queryParams += "?warnings=true";
           queryParams += "&from=" + from;
           queryParams += "&to=" + to;
+          queryParams += "&query=" + query;
         } else {
           queryParams += "?from=" + from;
           queryParams += "&to=" + to;
+          queryParams += "&query=" + query;
         }
       }
       return new Promise((resolve, reject) => {