comparison client/src/components/stretches/Stretches.vue @ 3275:98b5119cf4c1

client: define stretches: load only pending streches imports
author Markus Kottlaender <markus@intevation.de>
date Wed, 15 May 2019 17:29:03 +0200
parents c1beed689439
children 75db3199f76e
comparison
equal deleted inserted replaced
3274:c1beed689439 3275:98b5119cf4c1
397 } 397 }
398 return false; 398 return false;
399 }, 399 },
400 loadStagingData() { 400 loadStagingData() {
401 return new Promise((resolve, reject) => { 401 return new Promise((resolve, reject) => {
402 HTTP.get("/imports?states=pending", { 402 HTTP.get("/imports?states=pending&kinds=st", {
403 headers: { "X-Gemma-Auth": localStorage.getItem("token") } 403 headers: { "X-Gemma-Auth": localStorage.getItem("token") }
404 }) 404 })
405 .then(response => { 405 .then(response => {
406 const { imports } = response.data; 406 const { imports } = response.data;
407 this.staging = imports; 407 this.staging = imports;