Skip to content
Snippets Groups Projects
Commit 5430d3fd authored by leandro's avatar leandro
Browse files

fix params to DELETE a feature

parent 7ac02841
No related branches found
No related tags found
No related merge requests found
...@@ -195,7 +195,9 @@ const feature = { ...@@ -195,7 +195,9 @@ const feature = {
DELETE_FEATURE({ state, rootState }, feature_id) { DELETE_FEATURE({ state, rootState }, feature_id) {
console.log("Deleting feature:", feature_id, state) console.log("Deleting feature:", feature_id, state)
const url = `${rootState.configuration.VUE_APP_DJANGO_API_BASE}features/${feature_id}`; const url = `${rootState.configuration.VUE_APP_DJANGO_API_BASE}features/${feature_id}/?` +
`feature_type__slug=${rootState.feature_type.current_feature_type_slug}` +
`&project__slug=${rootState.project_slug}`;
return axios return axios
.delete(url) .delete(url)
.then((response) => response) .then((response) => response)
......
...@@ -533,7 +533,7 @@ export default { ...@@ -533,7 +533,7 @@ export default {
.dispatch("feature/DELETE_FEATURE", this.feature.feature_id) .dispatch("feature/DELETE_FEATURE", this.feature.feature_id)
.then((response) => { .then((response) => {
if (response.status === 204) { if (response.status === 204) {
this.$store.dispatch("feature/GET_PROJECT_FEATURES"); this.$store.dispatch("feature/GET_PROJECT_FEATURES", this.$route.params.slug);
this.goBackToProject(); this.goBackToProject();
} }
}); });
......
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