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
1c8b774b
Commit
1c8b774b
authored
1 year ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
switch get feature-types to v2 endpoints
parent
f4ddd432
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!541
REDMINE_ISSUE-16246| Ajouter un filtre sur la querystring pour récupérer les signalement modifié depuis une certaine date
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/store/modules/feature-type.store.js
+2
-2
2 additions, 2 deletions
src/store/modules/feature-type.store.js
with
2 additions
and
2 deletions
src/store/modules/feature-type.store.js
+
2
−
2
View file @
1c8b774b
...
...
@@ -97,10 +97,10 @@ const feature_type = {
actions
:
{
GET_PROJECT_FEATURE_TYPES
({
commit
},
project_slug
)
{
return
axios
.
get
(
`
${
this
.
state
.
configuration
.
VUE_APP_DJANGO_API_BASE
}
projects/
${
project_slug
}
/feature-types/
`
)
.
get
(
`
${
this
.
state
.
configuration
.
VUE_APP_DJANGO_API_BASE
}
v2/feature-types/?project__slug=
${
project_slug
}
`
)
.
then
((
response
)
=>
{
if
(
response
.
status
===
200
&&
response
.
data
)
{
commit
(
'
SET_FEATURE_TYPES
'
,
response
.
data
.
feature_types
);
commit
(
'
SET_FEATURE_TYPES
'
,
response
.
data
);
return
response
;
}
})
...
...
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