Skip to content
Snippets Groups Projects
Commit 7f3dd953 authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA :bicyclist:
Browse files

Revert "Merge branch 'REDMINE-ISSUES/12576' into 'develop'"

This reverts merge request !168
parent bd609a98
No related branches found
No related tags found
No related merge requests found
...@@ -625,12 +625,12 @@ export default { ...@@ -625,12 +625,12 @@ export default {
}, },
addFeatureToMap() { addFeatureToMap() {
const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}projects/${this.$route.params.slug}/feature/` + const currentFeatureId = this.$route.params.slug_signal;
`?feature_type__slug=${this.$store.state.feature_type.feature_types[0].slug}&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 axios
.get(url) .get(url)
.then((response) => { .then((response) => {
const feature = response.data.features[0]; const feature = response.data;
if (feature) { if (feature) {
const currentFeature = [feature]; const currentFeature = [feature];
const featureGroup = mapUtil.addFeatures( const featureGroup = mapUtil.addFeatures(
...@@ -675,7 +675,6 @@ export default { ...@@ -675,7 +675,6 @@ export default {
"feature_type/SET_CURRENT_FEATURE_TYPE_SLUG", "feature_type/SET_CURRENT_FEATURE_TYPE_SLUG",
this.$route.params.slug_type_signal this.$route.params.slug_type_signal
); );
console.log('hola')
this.getFeatureEvents(); this.getFeatureEvents();
this.getFeatureAttachments(); this.getFeatureAttachments();
this.getLinkedFeatures(); this.getLinkedFeatures();
......
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