diff --git a/src/views/feature/Feature_detail.vue b/src/views/feature/Feature_detail.vue index 827c688bf11bfe5ba83f4fe796119445036efc9c..29080bc28349b282510eb0d8a7e77918f89055e0 100644 --- a/src/views/feature/Feature_detail.vue +++ b/src/views/feature/Feature_detail.vue @@ -564,7 +564,7 @@ export default { addFeatureToMap() { const currentFeatureId = this.$route.params.slug_signal; - const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}features/${currentFeatureId}/?output=geojson`; + const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}features/${currentFeatureId}/?feature_type__slug=${this.$route.params.slug_type_signal}&output=geojson`; axios .get(url) .then((response) => { diff --git a/src/views/feature/Feature_edit.vue b/src/views/feature/Feature_edit.vue index 5a2d4742ecaf78fb86082a63a892ddaecf3a21d8..74ee78c9876f6ad982745bb98896903c34b607c4 100644 --- a/src/views/feature/Feature_edit.vue +++ b/src/views/feature/Feature_edit.vue @@ -411,7 +411,7 @@ export default { } } } - return [] + return []; }, }, @@ -875,7 +875,7 @@ export default { }); const currentFeatureId = this.$route.params.slug_signal; - const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}projects/${this.$route.params.slug}/feature/?output=geojson`; + const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}projects/${this.$route.params.slug}/feature/?feature_type__slug=${this.feature_type.slug}&output=geojson`; axios .get(url) .then((response) => { @@ -932,13 +932,13 @@ export default { }, created() { - /* if (!this.project) { - console.log(this.$store.state.projects); - this.project = this.$store.state.projects.find( + //if (!this.project) { + //console.log(this.$store.state.projects); + /* this.project = this.$store.state.projects.find( (project) => project.slug === this.$store.state.project_slug - ); - this.filterStatusChoicesF(); - } */ + ); */ + //this.filterStatusChoicesF(); + //} this.$store.commit( "feature_type/SET_CURRENT_FEATURE_TYPE_SLUG",