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
20f54589
Commit
20f54589
authored
1 year ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
switch feature-types endpoints to v2 api
parent
80868643
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/services/featureType-api.js
+1
-1
1 addition, 1 deletion
src/services/featureType-api.js
src/store/modules/feature-type.store.js
+2
-2
2 additions, 2 deletions
src/store/modules/feature-type.store.js
with
3 additions
and
3 deletions
src/services/featureType-api.js
+
1
−
1
View file @
20f54589
...
...
@@ -6,7 +6,7 @@ const baseUrl = store.state.configuration.VUE_APP_DJANGO_API_BASE;
const
featureTypeAPI
=
{
async
deleteFeatureType
(
featureType_slug
)
{
const
response
=
await
axios
.
delete
(
`
${
baseUrl
}
feature-types/
${
featureType_slug
}
`
`
${
baseUrl
}
v2/
feature-types/
${
featureType_slug
}
`
);
if
(
response
.
status
===
204
...
...
This diff is collapsed.
Click to expand it.
src/store/modules/feature-type.store.js
+
2
−
2
View file @
20f54589
...
...
@@ -161,7 +161,7 @@ const feature_type = {
//'is_editable': true,
};
let
url
=
`
${
this
.
state
.
configuration
.
VUE_APP_DJANGO_API_BASE
}
feature-types/`
;
let
url
=
`
${
this
.
state
.
configuration
.
VUE_APP_DJANGO_API_BASE
}
v2/
feature-types/`
;
if
(
requestType
===
'
put
'
)
url
+=
`
${
getters
.
feature_type
.
slug
}
/`
;
return
axios
({
url
,
...
...
@@ -184,7 +184,7 @@ const feature_type = {
...
symbology
};
return
axios
.
put
(
`
${
this
.
state
.
configuration
.
VUE_APP_DJANGO_API_BASE
}
feature-types/
${
getters
.
feature_type
.
slug
}
/`
,
data
)
.
put
(
`
${
this
.
state
.
configuration
.
VUE_APP_DJANGO_API_BASE
}
v2/
feature-types/
${
getters
.
feature_type
.
slug
}
/`
,
data
)
.
then
((
response
)
=>
{
if
(
response
)
{
const
feature_type_slug
=
response
.
data
.
slug
;
...
...
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