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

filter out multiple geometries feature type to add from list&map page

parent a57c9091
No related branches found
No related tags found
1 merge request!475REDMINE_ISSUE-14383| Permettre la visualisation, l'import et l'export de géométries-multiples
......@@ -72,7 +72,7 @@
</div>
<div class="scrolling menu text-wrap">
<router-link
v-for="(type, index) in feature_types"
v-for="(type, index) in filteredFeatureTypeChoices"
:key="type.slug + index"
:to="{
name: 'ajouter-signalement',
......@@ -142,7 +142,7 @@
>
<label>Type</label>
<Dropdown
:options="featureTypeChoices"
:options="featureTypeTitles"
:selected="form.type.selected"
:selection.sync="form.type.selected"
:search="true"
......@@ -286,7 +286,7 @@ export default {
}
return [];
},
featureTypeChoices() {
featureTypeTitles() {
return this.feature_types.map((el) => el.title);
},
filteredStatusChoices() {
......@@ -295,6 +295,11 @@ export default {
this.project && this.project.moderation ? true : el.value !== 'pending'
);
},
filteredFeatureTypeChoices() {
return this.feature_types.filter((fType) =>
!fType.geom_type.includes('multi')
);
},
},
watch: {
......
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