Skip to content
Snippets Groups Projects
Commit 26f36e40 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix import from geojson

parent 5675bad8
No related branches found
No related tags found
2 merge requests!295Version 3.0.0,!282REDMINE_ISSUE-12779
...@@ -539,9 +539,9 @@ export default { ...@@ -539,9 +539,9 @@ export default {
slug: this.slug, slug: this.slug,
feature_type_slug: this.$route.params.feature_type_slug, feature_type_slug: this.$route.params.feature_type_slug,
}; };
if (this.$route.params.geojson) { if (this.$route.params.geojson) { //* import after redirection, for instance with data from catalog
payload['geojson'] = this.$route.params.geojson; payload['geojson'] = this.$route.params.geojson;
} else if (this.fileToImport && !this.fileToImport.name) { } else if (this.fileToImport.size > 0) { //* import directly from geojson
payload['fileToImport'] = this.fileToImport; payload['fileToImport'] = this.fileToImport;
} else { } else {
this.importError = "La ressource n'a pas pu être récupéré."; this.importError = "La ressource n'a pas pu être récupéré.";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment