diff --git a/src/store/modules/feature.js b/src/store/modules/feature.js index 02c889157156c82b25dfa1d9916228691c872d55..4bb15cb964f7dc4c4518b406c77764dce8872036 100644 --- a/src/store/modules/feature.js +++ b/src/store/modules/feature.js @@ -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) diff --git a/src/views/feature/Feature_detail.vue b/src/views/feature/Feature_detail.vue index 1a1dd773c9dcee010166c237b86b973dc046dbf0..62203ff90acf0230451cf02f0f3e22c85579c717 100644 --- a/src/views/feature/Feature_detail.vue +++ b/src/views/feature/Feature_detail.vue @@ -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(); } });