Mercurial > gemma
diff client/src/store/imports.js @ 2399:e120631797f6 staging_consolidation
wip
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 27 Feb 2019 13:50:24 +0100 |
parents | 6747a4cf3639 |
children | 7600bb49e158 |
line wrap: on
line diff
--- a/client/src/store/imports.js Mon Feb 25 17:30:07 2019 +0100 +++ b/client/src/store/imports.js Wed Feb 27 13:50:24 2019 +0100 @@ -165,6 +165,22 @@ reject(error); }); }); + }, + confirmReview({ commit }, reviewResults) { + return new Promise((resolve, reject) => { + HTTP.patch("/imports", reviewResults, { + headers: { + "X-Gemma-Auth": localStorage.getItem("token"), + "Content-type": "application/json" + } + }) + .then(response => { + resolve(response); + }) + .catch(error => { + reject(error); + }); + }); } } };