Mercurial > gemma
comparison client/src/components/importconfiguration/types/Soundingresults.vue @ 3712:9eab897f66b6
import_soundingresult: form parameter for beamtype to boolean
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 20 Jun 2019 12:44:19 +0200 |
parents | ee7dc0bea083 |
children | 73589ed481f5 |
comparison
equal
deleted
inserted
replaced
3711:3d2b8f542d89 | 3712:9eab897f66b6 |
---|---|
312 formData.append("date", this.importDate.split("T")[0]); | 312 formData.append("date", this.importDate.split("T")[0]); |
313 if (this.depthReference) | 313 if (this.depthReference) |
314 formData.append("depth-reference", this.depthReference); | 314 formData.append("depth-reference", this.depthReference); |
315 if (this.projection) formData.append("epsg", this.projection); | 315 if (this.projection) formData.append("epsg", this.projection); |
316 if (this.beamType) | 316 if (this.beamType) |
317 formData.append("single-beam", this.$options.BEAMTYPES.SINGLEBEAM); | 317 formData.append( |
318 "single-beam", | |
319 this.beamType === this.$options.BEAMTYPES.SINGLEBEAM | |
320 ); | |
318 | 321 |
319 HTTP.post("/imports/sr", formData, { | 322 HTTP.post("/imports/sr", formData, { |
320 headers: { | 323 headers: { |
321 "X-Gemma-Auth": localStorage.getItem("token"), | 324 "X-Gemma-Auth": localStorage.getItem("token"), |
322 "Content-Type": "multipart/form-data" | 325 "Content-Type": "multipart/form-data" |