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

delete comented code

parent bd610abc
No related branches found
No related tags found
1 merge request!561REDMINE_ISSUE-16828|REDMINE_ISSUE-17022|REDMINE_ISSUE-17031|REDMINE_ISSUE-17033| Page utilisateur - lien non valide vers signalement
......@@ -514,23 +514,12 @@ export default {
},
addFeatureToMap() {
// const url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}v2/features/${this.slugSignal}/?project__slug=${this.$route.params.slug}&output=geojson`;
// axios
// .get(url)
// .then((response) => {
// const features = [response.data];
// if (features.length > 0) {
const featureGroup = mapService.addFeatures({
features: [this.currentFeature],
featureTypes: this.feature_types,
addToMap: true,
});
mapService.fitExtent(buffer(featureGroup.getExtent(),200));
// }
// })
// .catch((error) => {
// throw error;
// });
},
getFeatureEvents() {
......
......@@ -509,7 +509,7 @@ export default {
},
},
allowedStatusChoices() {
allowedStatusChoices() { // ? need to check if we could use function allowedStatus2change from utils to keep same rules ?
if (this.project && this.currentFeature && this.currentFeature.properties && this.user) {
const isModerate = this.project.moderation;
const userStatus = this.USER_LEVEL_PROJECTS[this.project.slug];
......
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