Mercurial > gemma
changeset 5278:8d19d4701f0c
Fixed saving and use of SortBy in manually running saved imports.
I broke this when making SortBy optional.
author | wilde@azure1.rgb.intevation.de |
---|---|
date | Thu, 11 Jun 2020 11:11:37 +0200 |
parents | 3bab0e19f08b |
children | a17c2a0b8e44 |
files | client/src/components/importconfiguration/ScheduledImports.vue client/src/store/importschedule.js |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/importconfiguration/ScheduledImports.vue Thu Jun 11 10:09:28 2020 +0200 +++ b/client/src/components/importconfiguration/ScheduledImports.vue Thu Jun 11 11:11:37 2020 +0200 @@ -881,6 +881,9 @@ if (!this.featureType) return; data["feature-type"] = this.featureType; } + if (this.sortBy) { + data["sort-by"] = this.sortBy; + } if (this.isToleranceRequired) { if (!this.tolerance) return; data["tolerance"] = parseFloat(this.tolerance); @@ -960,6 +963,9 @@ config["url"] = this.url; config["insecure"] = this.insecure; } + if (this.sortBy) { + config["sort-by"] = this.sortBy; + } if (this.isFeatureTypeRequired) { if (!this.featureType) return; config["feature-type"] = this.featureType;
--- a/client/src/store/importschedule.js Thu Jun 11 10:09:28 2020 +0200 +++ b/client/src/store/importschedule.js Thu Jun 11 11:11:37 2020 +0200 @@ -99,7 +99,7 @@ insecure: false, triggerActive: true, featureType: null, - sortBy: "hydro_scamin", + sortBy: "", tolerance: 5, username: "", password: "",