diff --git a/src/components/ImportTask.vue b/src/components/ImportTask.vue index 693df72ea8f4d5af0308f219582ccd5022f4bcf4..8c15409397ac5d0d13a97a7f65e8633ab81fbc6c 100644 --- a/src/components/ImportTask.vue +++ b/src/components/ImportTask.vue @@ -103,7 +103,8 @@ export default { feature_type: this.$route.params.feature_type_slug }); this.$store.dispatch('feature/GET_PROJECT_FEATURES', { - project_slug: this.$route.params.slug + project_slug: this.$route.params.slug, + feature_type__slug: this.$route.params.feature_type_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 7e74e6aa5c6e973acefe9d8666909a179f229c36..07dbfc9c86a745b70a2737aefed54f505a5c0641 100644 --- a/src/views/feature_type/Feature_type_detail.vue +++ b/src/views/feature_type/Feature_type_detail.vue @@ -298,7 +298,7 @@ export default { this.showImport = !this.showImport; if (this.showImport) { this.$store.dispatch("feature_type/GET_IMPORTS", { - feature_type: this.structure.slug + feature_type: this.$route.params.feature_type_slug }); } }, @@ -411,7 +411,7 @@ export default { const response = await this.$store.dispatch('feature/GET_PROJECT_FEATURES', { project_slug: this.$route.params.slug, - feature_type__slug : this.structure.slug, + feature_type__slug : this.$route.params.feature_type_slug, ordering: '-created_on', limit: '5' }) @@ -425,7 +425,7 @@ export default { 'structure'(newValue){ if (newValue.slug){ this.$store.dispatch("feature_type/GET_IMPORTS", { - feature_type: this.structure.slug + feature_type: this.$route.params.feature_type_slug }); } }