Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GéoContrib
Géocontrib Frontend
Commits
378bdf8f
Commit
378bdf8f
authored
2 years ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
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
!475
REDMINE_ISSUE-14383| Permettre la visualisation, l'import et l'export de géométries-multiples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Project/FeaturesListAndMap/FeaturesListAndMapFilters.vue
+8
-3
8 additions, 3 deletions
.../Project/FeaturesListAndMap/FeaturesListAndMapFilters.vue
with
8 additions
and
3 deletions
src/components/Project/FeaturesListAndMap/FeaturesListAndMapFilters.vue
+
8
−
3
View file @
378bdf8f
...
...
@@ -72,7 +72,7 @@
</div>
<div
class=
"scrolling menu text-wrap"
>
<router-link
v-for=
"(type, index) in f
eature_typ
es"
v-for=
"(type, index) in f
ilteredFeatureTypeChoic
es"
:key=
"type.slug + index"
:to=
"
{
name: 'ajouter-signalement',
...
...
@@ -142,7 +142,7 @@
>
<label>
Type
</label>
<Dropdown
:options=
"featureType
Choic
es"
:options=
"featureType
Titl
es"
:selected=
"form.type.selected"
:selection.sync=
"form.type.selected"
:search=
"true"
...
...
@@ -286,7 +286,7 @@ export default {
}
return
[];
},
featureType
Choic
es
()
{
featureType
Titl
es
()
{
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
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment