diff client/src/store/imports.js @ 2415:df56bc53e86d staging_consolidation

wip
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 28 Feb 2019 13:33:46 +0100
parents 7600bb49e158
children 522024fa06eb
line wrap: on
line diff
--- a/client/src/store/imports.js	Thu Feb 28 12:29:46 2019 +0100
+++ b/client/src/store/imports.js	Thu Feb 28 13:33:46 2019 +0100
@@ -158,9 +158,11 @@
           });
       });
     },
-    getImports({ commit }) {
+    getImports({ commit }, filter) {
+      let queryParams = "";
+      if (filter) queryParams = "?states=" + filter.join(",");
       return new Promise((resolve, reject) => {
-        HTTP.get("/imports", {
+        HTTP.get("/imports" + queryParams, {
           headers: { "X-Gemma-Auth": localStorage.getItem("token") }
         })
           .then(response => {