diff --git a/src/components/ImportTask.vue b/src/components/ImportTask.vue index b33b4ff3cc1120b273f47d1771c26d816de445de..8d35b287054a1921f8aaa80aa57042e1fd99a743 100644 --- a/src/components/ImportTask.vue +++ b/src/components/ImportTask.vue @@ -58,6 +58,8 @@ <script> +import { mapState } from "vuex"; + export default { data() { return { @@ -90,6 +92,9 @@ export default { } }, }, + computed: { + ...mapState("feature", ["features"]), + }, methods: { fetchImports() { @@ -97,6 +102,9 @@ export default { "feature_type/GET_IMPORTS", this.$route.params.feature_type_slug ); + this.$store.dispatch('feature/GET_PROJECT_FEATURES', { + project_slug: this.$route.params.slug + }) //* show that the action was triggered, could be improved with animation (doesn't work) this.ready = false; }, diff --git a/src/views/feature_type/Feature_type_detail.vue b/src/views/feature_type/Feature_type_detail.vue index b872358948af2d14266505ad65aa954b9ecbe9ab..1fae72a3484a0f4f23a530feec6eb24c81568dfe 100644 --- a/src/views/feature_type/Feature_type_detail.vue +++ b/src/views/feature_type/Feature_type_detail.vue @@ -355,9 +355,12 @@ export default { if (!this.project) { this.$store.dispatch("GET_PROJECT_INFO", this.$route.params.slug); } + this.$store.dispatch('feature/GET_PROJECT_FEATURES', { + project_slug: this.$route.params.slug + }) this.$store.commit( "feature_type/SET_CURRENT_FEATURE_TYPE_SLUG", - this.$route.params.slug_type_signal + this.$route.params.feature_type_slug ); }, };