# HG changeset patch # User Thomas Junk # Date 1551357226 -3600 # Node ID df56bc53e86de2e348324644f823ce1e97bc18ec # Parent f39c4b432601ac39dd1b02dfc6f61b41f37c26c4 wip diff -r f39c4b432601 -r df56bc53e86d client/src/store/imports.js --- 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 => {