changeset 2415:df56bc53e86d staging_consolidation

wip
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 28 Feb 2019 13:33:46 +0100
parents f39c4b432601
children 706121185e63
files client/src/store/imports.js
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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 => {