From f23813892027341e38424ff40bd82ee35d8bb863 Mon Sep 17 00:00:00 2001 From: Florent <florent@MacBook-Air-de-neogeo.local> Date: Fri, 26 Nov 2021 15:06:12 +0100 Subject: [PATCH] update changed function --- src/views/feature/Feature_detail.vue | 4 +++- src/views/feature/Feature_list.vue | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/feature/Feature_detail.vue b/src/views/feature/Feature_detail.vue index 6bb76f5b..62c585a0 100644 --- a/src/views/feature/Feature_detail.vue +++ b/src/views/feature/Feature_detail.vue @@ -567,7 +567,9 @@ export default { if (response.status === 204) { this.$store.dispatch( "feature/GET_PROJECT_FEATURES", - this.$route.params.slug + { + project_slug: this.$route.params.slug + } ); this.goBackToProject(); } diff --git a/src/views/feature/Feature_list.vue b/src/views/feature/Feature_list.vue index d3b0e0c3..37a7eda3 100644 --- a/src/views/feature/Feature_list.vue +++ b/src/views/feature/Feature_list.vue @@ -322,7 +322,11 @@ export default { .then(() => { if (!this.modalAllDeleteOpen) { this.$store - .dispatch("feature/GET_PROJECT_FEATURES", this.project.slug) + .dispatch("feature/GET_PROJECT_FEATURES", + { + project_slug: this.project.slug + } + ) .then(() => { this.getNloadGeojsonFeatures(); this.checkedFeatures.splice(feature_id); -- GitLab