Skip to content
Snippets Groups Projects
Commit c20508e0 authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA :bicyclist:
Browse files

Merge branch 'redmine-issus/11952' into 'develop'

REDMINE_ISSUE-11952

See merge request !84
parents f68b6a8d 5430d3fd
No related branches found
No related tags found
1 merge request!84REDMINE_ISSUE-11952
......@@ -195,7 +195,9 @@ const feature = {
DELETE_FEATURE({ state, rootState }, feature_id) {
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
.delete(url)
.then((response) => response)
......
......@@ -533,7 +533,7 @@ export default {
.dispatch("feature/DELETE_FEATURE", this.feature.feature_id)
.then((response) => {
if (response.status === 204) {
this.$store.dispatch("feature/GET_PROJECT_FEATURES");
this.$store.dispatch("feature/GET_PROJECT_FEATURES", this.$route.params.slug);
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